diff --git a/packages/build/tests/install/fixtures/local_missing_integration/integration/main.js b/packages/build/tests/install/fixtures/local_missing_integration/integration/main.js index 7f116e7aa6..8c1f901340 100644 --- a/packages/build/tests/install/fixtures/local_missing_integration/integration/main.js +++ b/packages/build/tests/install/fixtures/local_missing_integration/integration/main.js @@ -1,5 +1,3 @@ -import avg from 'math-avg' - export const onPreBuild = function () { - console.log(avg([1, 2])) + console.log("Hello world"); } diff --git a/packages/build/tests/install/fixtures/local_missing_integration/netlify.toml b/packages/build/tests/install/fixtures/local_missing_integration/netlify.toml index 3657e78599..c7204d2e8c 100644 --- a/packages/build/tests/install/fixtures/local_missing_integration/netlify.toml +++ b/packages/build/tests/install/fixtures/local_missing_integration/netlify.toml @@ -1,6 +1,6 @@ [[integrations]] - name = "abc-integration" +name = "abc-integration" - [integrations.dev] - path = "./integration" - force_run_in_build = true \ No newline at end of file +[integrations.dev] +path = "./integration" +force_run_in_build = true diff --git a/packages/build/tests/install/snapshots/tests.js.md b/packages/build/tests/install/snapshots/tests.js.md index 8f70fe466d..ff4bfb1ff3 100644 --- a/packages/build/tests/install/snapshots/tests.js.md +++ b/packages/build/tests/install/snapshots/tests.js.md @@ -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`. @@ -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:␊ @@ -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:␊ @@ -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␊ ␊ diff --git a/packages/build/tests/install/snapshots/tests.js.snap b/packages/build/tests/install/snapshots/tests.js.snap index 2022c28872..7db5dbd941 100644 Binary files a/packages/build/tests/install/snapshots/tests.js.snap and b/packages/build/tests/install/snapshots/tests.js.snap differ diff --git a/packages/build/tests/install/tests.js b/packages/build/tests/install/tests.js index 50f075d3a7..990ab36c17 100644 --- a/packages/build/tests/install/tests.js +++ b/packages/build/tests/install/tests.js @@ -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()