Skip to content

Commit

Permalink
fix: paths on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
estephinson committed Sep 12, 2023
1 parent 7bf33dc commit acc37c7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import avg from 'math-avg'

export const onPreBuild = function () {
console.log(avg([1, 2]))
console.log("Hello world");
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[integrations]]
name = "abc-integration"
name = "abc-integration"

[integrations.dev]
path = "./integration"
force_run_in_build = true
[integrations.dev]
path = "./integration"
force_run_in_build = true
10 changes: 5 additions & 5 deletions packages/build/tests/install/snapshots/tests.js.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Snapshot report for `packages/build/tests/install/tests.js`
# Snapshot report for `tests/install/tests.js`

The actual snapshot is saved in `tests.js.snap`.

Expand Down Expand Up @@ -418,7 +418,7 @@ Generated by [AVA](https://avajs.dev).
package = "@netlify/plugin-functions-install-core"␊
Build failed with 1 error:␊
packages/build/tests/install/fixtures/optional-esbuild/functions/index.js ERROR: Could not resolve "math-avg"␊
tests/install/fixtures/optional-esbuild/functions/index.js ERROR: Could not resolve "math-avg"␊
Resolved config␊
build:␊
Expand Down Expand Up @@ -488,8 +488,8 @@ Generated by [AVA](https://avajs.dev).
package = "@netlify/plugin-functions-install-core"␊
Build failed with 2 errors:␊
packages/build/tests/install/fixtures/optional-many-esbuild/functions/index.js ERROR: Could not resolve "math-avg"␊
packages/build/tests/install/fixtures/optional-many-esbuild/functions/index.js ERROR: Could not resolve "sharp"␊
tests/install/fixtures/optional-many-esbuild/functions/index.js ERROR: Could not resolve "math-avg"␊
tests/install/fixtures/optional-many-esbuild/functions/index.js ERROR: Could not resolve "sharp"␊
Resolved config␊
build:␊
Expand Down Expand Up @@ -1180,7 +1180,7 @@ Generated by [AVA](https://avajs.dev).
debug: true␊
repositoryRoot: packages/build/tests/install/fixtures/local_missing_integration␊
testOpts:␊
cwd: ./packages/build/tests/install/fixtures/local_missing_integration/␊
cwd: ./tests/install/fixtures/local_missing_integration/␊
pluginsListUrl: test␊
silentLingeringProcesses: true␊
Expand Down
Binary file modified packages/build/tests/install/snapshots/tests.js.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/build/tests/install/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ test('In integration dev mode, install local plugins and install the integration
context: 'dev',
featureFlags: { cli_fetch_integrations: true },
testOpts: {
cwd: './packages/build/tests/install/fixtures/local_missing_integration/',
cwd: './tests/install/fixtures/local_missing_integration/',
},
})
.runWithBuild()
Expand Down

0 comments on commit acc37c7

Please sign in to comment.