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 35fa4cc350..2fd64e9523 100644 Binary files a/packages/compartment-mapper/test/snapshots/language-for-extension.test.js.snap and b/packages/compartment-mapper/test/snapshots/language-for-extension.test.js.snap differ