Skip to content

Commit

Permalink
fix(compartment-mapper): Fix path for language for extension test (#2640
Browse files Browse the repository at this point in the history
)

This is a small typo in a test that was producing a different error than
the expected variety.
  • Loading branch information
kriskowal authored Nov 21, 2024
2 parents 8ed8a8b + 99a1cb5 commit 7da1c44
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Binary file not shown.

0 comments on commit 7da1c44

Please sign in to comment.