From 99a1cb5e960fa62c2dab49ff0724162710730330 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Wed, 20 Nov 2024 15:03:04 -0800 Subject: [PATCH] fix(compartment-mapper): Fix path for language for extension test --- .../test/language-for-extension.test.js | 2 +- .../language-for-extension.test.js.md | 18 +++++++++--------- .../language-for-extension.test.js.snap | Bin 1110 -> 973 bytes 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/compartment-mapper/test/language-for-extension.test.js b/packages/compartment-mapper/test/language-for-extension.test.js index 6e6d3ae4c6..119b770282 100644 --- a/packages/compartment-mapper/test/language-for-extension.test.js +++ b/packages/compartment-mapper/test/language-for-extension.test.js @@ -157,7 +157,7 @@ scaffold( 'workspaceModuleLanguageForExtension should not be available in commonjs package', test, new URL( - 'fixtures-language-for-extension/package/commonjs-app/module.xsonp', + 'fixtures-language-for-extension/packages/commonjs-app/module.xsonp', import.meta.url, ).href, assertions, diff --git a/packages/compartment-mapper/test/snapshots/language-for-extension.test.js.md b/packages/compartment-mapper/test/snapshots/language-for-extension.test.js.md index 684f541900..25dc6b610d 100644 --- a/packages/compartment-mapper/test/snapshots/language-for-extension.test.js.md +++ b/packages/compartment-mapper/test/snapshots/language-for-extension.test.js.md @@ -116,55 +116,55 @@ Generated by [AVA](https://avajs.dev). > Snapshot 1 - 'Failed to load module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" in package "file://.../compartment-mapper/" (1 underlying failures: Cannot find file for internal module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" (with candidates "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.node", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.node") in package file://.../compartment-mapper/' + 'Failed to load module "./module.xsonp" in package "file://.../commonjs-app/" (1 underlying failures: Cannot parse module ./module.xsonp at file://.../commonjs-app/module.xsonp, no parser configured for the language xsonp' ## workspaceModuleLanguageForExtension should not be available in commonjs package / mapNodeModules / importFromMap > Snapshot 1 - 'Failed to load module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" in package "file://.../compartment-mapper/" (1 underlying failures: Cannot find file for internal module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" (with candidates "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.node", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.node") in package file://.../compartment-mapper/' + 'Failed to load module "./module.xsonp" in package "file://.../commonjs-app/" (1 underlying failures: Cannot parse module ./module.xsonp at file://.../commonjs-app/module.xsonp, no parser configured for the language xsonp' ## workspaceModuleLanguageForExtension should not be available in commonjs package / mapNodeModules / loadFromMap / import > Snapshot 1 - 'Failed to load module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" in package "file://.../compartment-mapper/" (1 underlying failures: Cannot find file for internal module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" (with candidates "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.node", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.node") in package file://.../compartment-mapper/' + 'Failed to load module "./module.xsonp" in package "file://.../commonjs-app/" (1 underlying failures: Cannot parse module ./module.xsonp at file://.../commonjs-app/module.xsonp, no parser configured for the language xsonp' ## workspaceModuleLanguageForExtension should not be available in commonjs package / importLocation > Snapshot 1 - 'Failed to load module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" in package "file://.../compartment-mapper/" (1 underlying failures: Cannot find file for internal module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" (with candidates "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.node", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.node") in package file://.../compartment-mapper/' + 'Failed to load module "./module.xsonp" in package "file://.../commonjs-app/" (1 underlying failures: Cannot parse module ./module.xsonp at file://.../commonjs-app/module.xsonp, no parser configured for the language xsonp' ## workspaceModuleLanguageForExtension should not be available in commonjs package / makeArchive / parseArchive > Snapshot 1 - 'Failed to load module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" in package "file://.../compartment-mapper/" (1 underlying failures: Cannot find file for internal module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" (with candidates "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.node", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.node") in package file://.../compartment-mapper/' + 'Failed to load module "./module.xsonp" in package "file://.../commonjs-app/" (1 underlying failures: Cannot parse module ./module.xsonp at file://.../commonjs-app/module.xsonp, no parser configured for the language xsonp' ## workspaceModuleLanguageForExtension should not be available in commonjs package / makeArchive / parseArchive with a prefix > Snapshot 1 - 'Failed to load module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" in package "file://.../compartment-mapper/" (1 underlying failures: Cannot find file for internal module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" (with candidates "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.node", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.node") in package file://.../compartment-mapper/' + 'Failed to load module "./module.xsonp" in package "file://.../commonjs-app/" (1 underlying failures: Cannot parse module ./module.xsonp at file://.../commonjs-app/module.xsonp, no parser configured for the language xsonp' ## workspaceModuleLanguageForExtension should not be available in commonjs package / writeArchive / loadArchive > Snapshot 1 - 'Failed to load module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" in package "file://.../compartment-mapper/" (1 underlying failures: Cannot find file for internal module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" (with candidates "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.node", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.node") in package file://.../compartment-mapper/' + 'Failed to load module "./module.xsonp" in package "file://.../commonjs-app/" (1 underlying failures: Cannot parse module ./module.xsonp at file://.../commonjs-app/module.xsonp, no parser configured for the language xsonp' ## workspaceModuleLanguageForExtension should not be available in commonjs package / writeArchive / importArchive > Snapshot 1 - 'Failed to load module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" in package "file://.../compartment-mapper/" (1 underlying failures: Cannot find file for internal module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" (with candidates "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.node", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.node") in package file://.../compartment-mapper/' + 'Failed to load module "./module.xsonp" in package "file://.../commonjs-app/" (1 underlying failures: Cannot parse module ./module.xsonp at file://.../commonjs-app/module.xsonp, no parser configured for the language xsonp' ## workspaceModuleLanguageForExtension should not be available in commonjs package / mapNodeModules / makeArchiveFromMap / importArchive > Snapshot 1 - 'Failed to load module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" in package "file://.../compartment-mapper/" (1 underlying failures: Cannot find file for internal module "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp" (with candidates "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp.node", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.js", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.json", "./test/fixtures-language-for-extension/package/commonjs-app/module.xsonp/index.node") in package file://.../compartment-mapper/' + 'Failed to load module "./module.xsonp" in package "file://.../commonjs-app/" (1 underlying failures: Cannot parse module ./module.xsonp at file://.../commonjs-app/module.xsonp, no parser configured for the language xsonp' ## workspaceModuleLanguageForExtension should not be available under node_modules / loadLocation diff --git a/packages/compartment-mapper/test/snapshots/language-for-extension.test.js.snap b/packages/compartment-mapper/test/snapshots/language-for-extension.test.js.snap index 35fa4cc350c95c923aff06061659cef99ec2f480..2fd64e9523200aaff035c3a6af04ffc8231d5794 100644 GIT binary patch literal 973 zcmV;;12X(URzV00000000B+oH29LFc^kYIF6Zr@LeVb5+4ggH?BvgmaW$^K&#ktB4SIb ztTbuq!X52zU@gCjft`Ur!8uMKVZd=B+4AY@(&nzUrT2N|==KoNe zCvy_spsGbT7>BQZ%L;6lTI0=XhAA%lbh;}D8875rlcl7wS2 zq!2(NNOUAZqM6_<<3wg7p|j5qQA9L(w>Np*dD_Xp_MUW}J&N}Z2}@`MTFn0tieW&v z9~3|JXPMx#o8N1Bi*C#kx*r7nem@9BDv8o5<+_&=DX9uH&2$j6nVu+`^^(Peda+PF zx|~wLMMTewJ7mFf5djsN7sX%{go4LxI8ii$SSZjV3d?K5{Fj%QhsH3cM7|XfJuZd`0kBjGr4N-zkBLO^ zj)CX)z~}fD*#Fo7`8&q{)ENH)Fh1cO1sxh(=wtd?g(G&AznYI@@e-js2K}-I=rCn^ z1O%j_F`J1uXrGbhwI)==+qYU;!Pg0yNUhQ-e!K~`Ty^p9^K%k8%~y& ztLlfvd^c|0T&`grxPZC%?j+=uq3zzbF^0Hu+XkUG1)bZ2zG2G-**C@h)EN8Hb`3&q z3UX+0fmdkNAn>MuU)BJ;v`vHf+rQo`wP+A{Q^2V$;AI6lB5w-$t-VeAR;?LyLQ_uo zFcoT?NfIs)+Wyy?vtMhde{^<6ZL5K1u=gd+i(Iio;-&1<8f4$7N8zRV7v|M3=@NJ; zb7I5f8`tSxN`6zPmPIP zR)9}!gU8gl3(V@U03N>A0w)j)PQYXMoJO8nS^Rh)UrX?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