Skip to content

Commit 654f9fc

Browse files
committed
snaps
1 parent 674320e commit 654f9fc

File tree

8 files changed

+9
-82
lines changed

8 files changed

+9
-82
lines changed

packages/build/tests/edge_functions/snapshots/tests.js.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Snapshot report for `packages/build/tests/edge_functions/tests.js`
1+
# Snapshot report for `tests/edge_functions/tests.js`
22

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

@@ -1279,7 +1279,7 @@ Generated by [AVA](https://avajs.dev).
12791279
────────────────────────────────────────────────────────────────␊
12801280
12811281
Error message␊
1282-
Error: Command failed with exit code 1: deno bundle --import-map BASE64_STRING --quiet --code-splitting --allow-import --outdir /external/path packages/build/tests/edge_functions/fixtures/functions_invalid/netlify/edge-functions/functions-1.ts␊
1282+
Error: Command failed with exit code 1: deno bundle --import-map BASE64_STRING --quiet --code-splitting --allow-import --node-modules-dir=manual --outdir /external/path packages/build/tests/edge_functions/fixtures/functions_invalid/netlify/edge-functions/functions-1.ts␊
12831283
STACK TRACE␊
12841284
12851285
export async () => ␊
@@ -1292,9 +1292,9 @@ Generated by [AVA](https://avajs.dev).
12921292
12931293
Error properties␊
12941294
{␊
1295-
shortMessage: 'Command failed with exit code 1: deno bundle --import-map BASE64_STRING --quiet --code-splitting --allow-import --outdir /external/path packages/build/tests/edge_functions/fixtures/functions_invalid/netlify/edge-functions/functions-1.ts',␊
1296-
command: 'deno bundle --import-map BASE64_STRING --quiet --code-splitting --allow-import --outdir /external/path packages/build/tests/edge_functions/fixtures/functions_invalid/netlify/edge-functions/functions-1.ts',␊
1297-
escapedCommand: 'deno bundle --import-map "BASE64_STRING" --quiet --code-splitting --allow-import --outdir "/external/path" "packages/build/tests/edge_functions/fixtures/functions_invalid/netlify/edge-functions/functions-1.ts"',␊
1295+
shortMessage: 'Command failed with exit code 1: deno bundle --import-map BASE64_STRING --quiet --code-splitting --allow-import --node-modules-dir=manual --outdir /external/path packages/build/tests/edge_functions/fixtures/functions_invalid/netlify/edge-functions/functions-1.ts',␊
1296+
command: 'deno bundle --import-map BASE64_STRING --quiet --code-splitting --allow-import --node-modules-dir=manual --outdir /external/path packages/build/tests/edge_functions/fixtures/functions_invalid/netlify/edge-functions/functions-1.ts',␊
1297+
escapedCommand: 'deno bundle --import-map "BASE64_STRING" --quiet --code-splitting --allow-import "--node-modules-dir=manual" --outdir "/external/path" "packages/build/tests/edge_functions/fixtures/functions_invalid/netlify/edge-functions/functions-1.ts"',␊
12981298
exitCode: 1,␊
12991299
signal: undefined,␊
13001300
signalDescription: undefined,␊
23 Bytes
Binary file not shown.

packages/build/tests/install/snapshots/tests.js.md

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,70 +1159,3 @@ Generated by [AVA](https://avajs.dev).
11591159
11601160
(Netlify Build completed in 1ms)␊
11611161
Build step duration: Netlify Build completed in 1ms`
1162-
1163-
## In integration dev mode, install local plugins and install the integration when forcing build
1164-
1165-
> Snapshot 1
1166-
1167-
`␊
1168-
Netlify Build ␊
1169-
────────────────────────────────────────────────────────────────␊
1170-
1171-
> Version␊
1172-
@netlify/build 1.0.0␊
1173-
1174-
> Flags␊
1175-
context: dev␊
1176-
debug: true␊
1177-
repositoryRoot: packages/build/tests/install/fixtures/local_missing_integration␊
1178-
testOpts:␊
1179-
pluginsListUrl: test␊
1180-
silentLingeringProcesses: true␊
1181-
1182-
> Current directory␊
1183-
packages/build/tests/install/fixtures/local_missing_integration␊
1184-
1185-
> Config file␊
1186-
packages/build/tests/install/fixtures/local_missing_integration/netlify.toml␊
1187-
1188-
> Resolved config␊
1189-
build:␊
1190-
publish: packages/build/tests/install/fixtures/local_missing_integration␊
1191-
publishOrigin: default␊
1192-
1193-
> Context␊
1194-
dev␊
1195-
1196-
> Installing extensions␊
1197-
- functions-injection␊
1198-
1199-
> Loading extensions␊
1200-
- functions-injection␊
1201-
1202-
functions-injection-buildhooks (onPreBuild event) ␊
1203-
────────────────────────────────────────────────────────────────␊
1204-
1205-
Hello from onPreBuild␊
1206-
1207-
(functions-injection-buildhooks onPreBuild completed in 1ms)␊
1208-
Build step duration: functions-injection-buildhooks onPreBuild completed in 1ms␊
1209-
1210-
Functions bundling ␊
1211-
────────────────────────────────────────────────────────────────␊
1212-
1213-
Packaging Functions generated by functions-injection extension:␊
1214-
- my_unique_prefix_2_function-with-external-dependencies-directory␊
1215-
- my_unique_prefix_2_function-with-external-dependencies-directory-multifile␊
1216-
- my_unique_prefix_2_function-with-external-dependencies.ts␊
1217-
- my_unique_prefix_2_function-with-local-dependencies.ts␊
1218-
- my_unique_prefix_2_function-with-no-dependencies.ts␊
1219-
1220-
1221-
(Functions bundling completed in 1ms)␊
1222-
Build step duration: Functions bundling completed in 1ms␊
1223-
1224-
Netlify Build Complete ␊
1225-
────────────────────────────────────────────────────────────────␊
1226-
1227-
(Netlify Build completed in 1ms)␊
1228-
Build step duration: Netlify Build completed in 1ms`
-77 Bytes
Binary file not shown.

packages/build/tests/monitor/snapshots/tests.js.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ Generated by [AVA](https://avajs.dev).
15881588
────────────────────────────────────────────────────────────────␊
15891589
15901590
Error message␊
1591-
Command failed with exit code 1: deno run --allow-all --no-config --import-map=packages/edge-bundler/deno/vendor/import_map.json --quiet packages/edge-bundler/deno/bundle.ts {"basePath":"packages/build/tests/monitor/fixtures/edge_function_error","destPath":"packages/build/tests/monitor/fixtures/edge_function_error/.netlify/edge-functions-dist/HEXADECIMAL_ID.eszip","externals":[],"functions":[{"name":"trouble","path":"packages/build/tests/monitor/fixtures/edge_function_error/netlify/edge-functions/trouble.ts"}],"importMapData":"{/"imports/":{/"@netlify/edge-functions/":/"https://edge.netlify.com/v1.0.0/index.ts/",/"netlify:edge/":/"https://edge.netlify.com/v1.0.0/index.ts?v=legacy/"},/"scopes/":{}}"}␊
1591+
Command failed with exit code 1: deno run --allow-all --no-config --node-modules-dir=manual --import-map=packages/edge-bundler/deno/vendor/import_map.json --quiet packages/edge-bundler/deno/bundle.ts {"basePath":"packages/build/tests/monitor/fixtures/edge_function_error","destPath":"packages/build/tests/monitor/fixtures/edge_function_error/.netlify/edge-functions-dist/HEXADECIMAL_ID.eszip","externals":[],"functions":[{"name":"trouble","path":"packages/build/tests/monitor/fixtures/edge_function_error/netlify/edge-functions/trouble.ts"}],"importMapData":"{/"imports/":{/"@netlify/edge-functions/":/"https://edge.netlify.com/v1.0.0/index.ts/",/"netlify:edge/":/"https://edge.netlify.com/v1.0.0/index.ts?v=legacy/"},/"scopes/":{}}"}␊
15921592
error: Uncaught (in promise) Error: Error: Could not find file: packages/build/tests/monitor/fixtures/edge_function_error/netlify/edge-functions/file.ts␊
15931593
const ret = new Error(getStringFromWasm0(arg0, arg1));␊
15941594
^␊
@@ -1606,9 +1606,9 @@ Generated by [AVA](https://avajs.dev).
16061606
Error monitoring payload:␊
16071607
{␊
16081608
"errorClass": "functionsBundling",␊
1609-
"errorMessage": "Command failed with exit code 1: deno run --allow-all --no-config --import-map=packages/edge-bundler/deno/vendor/import_map.json --quiet packages/edge-bundler/deno/bundle.ts {/"basePath/":/"packages/build/tests/monitor/fixtures/edge_function_error",/"destPath/":/"packages/build/tests/monitor/fixtures/edge_function_error/.netlify/edge-functions-dist/HEXADECIMAL_ID.eszip",/"externals/":[],/"functions/":[{/"name/":/"trouble/",/"path/":/"packages/build/tests/monitor/fixtures/edge_function_error/netlify/edge-functions/trouble.ts"}],/"importMapData/":/"{//"imports//":{//"@netlify/edge-functions//"://"https://edge.netlify.com/v1.0.0/index.ts//",//"netlify:edge//"://"https://edge.netlify.com/v1.0.0/index.ts?v=legacy//"},//"scopes//":{}}/"}/nerror: Uncaught (in promise) Error: Error: Could not find file: packages/build/tests/monitor/fixtures/edge_function_error/netlify/edge-functions/file.ts/n const ret = new Error(getStringFromWasm0(arg0, arg1));/n ^/n at __wbg_new_HEXADECIMAL_ID (packages/edge-bundler/deno/vendor/deno.land/x/eszip@v1.0.0/eszip_wasm.generated.js:80:80)/n at <anonymous> (wasm://wasm/HEXADECIMAL_ID:1:80)/n at <anonymous> (wasm://wasm/HEXADECIMAL_ID:1:80)/n at <anonymous> (wasm://wasm/HEXADECIMAL_ID:1:80)/n at __wbg_adapter_40 (packages/edge-bundler/deno/vendor/deno.land/x/eszip@v1.0.0/eszip_wasm.generated.js:80:8)/n at real (packages/edge-bundler/deno/vendor/deno.land/x/eszip@v1.0.0/eszip_wasm.generated.js:80:80)/n at eventLoopTick (ext:core/01_core.js:80:7)",␊
1609+
"errorMessage": "Command failed with exit code 1: deno run --allow-all --no-config --node-modules-dir=manual --import-map=packages/edge-bundler/deno/vendor/import_map.json --quiet packages/edge-bundler/deno/bundle.ts {/"basePath/":/"packages/build/tests/monitor/fixtures/edge_function_error",/"destPath/":/"packages/build/tests/monitor/fixtures/edge_function_error/.netlify/edge-functions-dist/HEXADECIMAL_ID.eszip",/"externals/":[],/"functions/":[{/"name/":/"trouble/",/"path/":/"packages/build/tests/monitor/fixtures/edge_function_error/netlify/edge-functions/trouble.ts"}],/"importMapData/":/"{//"imports//":{//"@netlify/edge-functions//"://"https://edge.netlify.com/v1.0.0/index.ts//",//"netlify:edge//"://"https://edge.netlify.com/v1.0.0/index.ts?v=legacy//"},//"scopes//":{}}/"}/nerror: Uncaught (in promise) Error: Error: Could not find file: packages/build/tests/monitor/fixtures/edge_function_error/netlify/edge-functions/file.ts/n const ret = new Error(getStringFromWasm0(arg0, arg1));/n ^/n at __wbg_new_HEXADECIMAL_ID (packages/edge-bundler/deno/vendor/deno.land/x/eszip@v1.0.0/eszip_wasm.generated.js:80:80)/n at <anonymous> (wasm://wasm/HEXADECIMAL_ID:1:80)/n at <anonymous> (wasm://wasm/HEXADECIMAL_ID:1:80)/n at <anonymous> (wasm://wasm/HEXADECIMAL_ID:1:80)/n at __wbg_adapter_40 (packages/edge-bundler/deno/vendor/deno.land/x/eszip@v1.0.0/eszip_wasm.generated.js:80:8)/n at real (packages/edge-bundler/deno/vendor/deno.land/x/eszip@v1.0.0/eszip_wasm.generated.js:80:80)/n at eventLoopTick (ext:core/01_core.js:80:7)",␊
16101610
"context": "Bundling of edge function failed",␊
1611-
"groupingHash": "Bundling of edge function failed/nCommand failed with exit code 0: deno run --allow-all --no-config /external/path --quiet /external/path {/"/":/"/",/"/":/"/",/"/":[],/"/":[{/"/":/"/",/"/":/"/"}],/"/":/"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"}/nerror: Uncaught (in promise) Error: Error: Could not find file: /external/path const ret = new Error(getStringFromWasm0(arg0, arg0));/n ^/n at __wbg_new_hex /external/path at <anonymous> /external/path at <anonymous> /external/path at <anonymous> /external/path at __wbg_adapter_0 /external/path at real /external/path at eventLoopTick /external/path",␊
1611+
"groupingHash": "Bundling of edge function failed/nCommand failed with exit code 0: deno run --allow-all --no-config --node-modules-dir=manual /external/path --quiet /external/path {/"/":/"/",/"/":/"/",/"/":[],/"/":[{/"/":/"/",/"/":/"/"}],/"/":/"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"}/nerror: Uncaught (in promise) Error: Error: Could not find file: /external/path const ret = new Error(getStringFromWasm0(arg0, arg0));/n ^/n at __wbg_new_hex /external/path at <anonymous> /external/path at <anonymous> /external/path at <anonymous> /external/path at __wbg_adapter_0 /external/path at real /external/path at eventLoopTick /external/path",␊
16121612
"severity": "info",␊
16131613
"unhandled": false,␊
16141614
"location": {␊
@@ -1619,7 +1619,7 @@ Generated by [AVA](https://avajs.dev).
16191619
"pluginPackageJson": false,␊
16201620
"BUILD_ID": "0",␊
16211621
"other": {␊
1622-
"groupingHash": "Bundling of edge function failed/nCommand failed with exit code 0: deno run --allow-all --no-config /external/path --quiet /external/path {/"/":/"/",/"/":/"/",/"/":[],/"/":[{/"/":/"/",/"/":/"/"}],/"/":/"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"}/nerror: Uncaught (in promise) Error: Error: Could not find file: /external/path const ret = new Error(getStringFromWasm0(arg0, arg0));/n ^/n at __wbg_new_hex /external/path at <anonymous> /external/path at <anonymous> /external/path at <anonymous> /external/path at __wbg_adapter_0 /external/path at real /external/path at eventLoopTick /external/path"␊
1622+
"groupingHash": "Bundling of edge function failed/nCommand failed with exit code 0: deno run --allow-all --no-config --node-modules-dir=manual /external/path --quiet /external/path {/"/":/"/",/"/":/"/",/"/":[],/"/":[{/"/":/"/",/"/":/"/"}],/"/":/"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"/external/path"/"}/nerror: Uncaught (in promise) Error: Error: Could not find file: /external/path const ret = new Error(getStringFromWasm0(arg0, arg0));/n ^/n at __wbg_new_hex /external/path at <anonymous> /external/path at <anonymous> /external/path at <anonymous> /external/path at __wbg_adapter_0 /external/path at real /external/path at eventLoopTick /external/path"␊
16231623
}␊
16241624
}`
16251625

16 Bytes
Binary file not shown.

packages/config/tests/api/snapshots/tests.js.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,9 +2402,3 @@ Generated by [AVA](https://avajs.dev).
24022402
},␊
24032403
"token": "test"␊
24042404
}`
2405-
2406-
## Integrations are not returned if failed to fetch integrations
2407-
2408-
> Snapshot 1
2409-
2410-
'Failed retrieving extensions for site test: Unexpected status code 500 from fetching extensions. Double-check your login status with \'netlify status\' or contact support with details of your error.'
-12 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)