Debian Codegraph @

tap-snapshots/test/errors.ts.test.cjs

raw
1 /* IMPORTANT
2 * This snapshot file is auto-generated, but designed for humans.
3 * It should be checked into source control and tracked carefully.
4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5 * Make sure to inspect the output below. Do not ignore changes!
6 */
7 'use strict'
8 exports[`test/errors.ts > TAP > must match snapshot 1`] = `
9 Error: invalid import() specifier: some invalid url
10 `
11
12 exports[`test/errors.ts > TAP > must match snapshot 2`] = `
13 Error: Not a valid package: /some/package.json
14 `
15
16 exports[`test/errors.ts > TAP > must match snapshot 3`] = `
17 Error: Cannot find module '/path/to/module' imported from /from {
18 "code": "ERR_MODULE_NOT_FOUND",
19 }
20 `
21
22 exports[`test/errors.ts > TAP > must match snapshot 4`] = `
23 Error: Package import specifier "./a" is not defined in package /x/package.json imported from /from {
24 "code": "ERR_PACKAGE_IMPORT_NOT_DEFINED",
25 }
26 `
27
28 exports[`test/errors.ts > TAP > must match snapshot 5`] = `
29 Error: Cannot find package '@some/pkg' imported from /from {
30 "code": "ERR_MODULE_NOT_FOUND",
31 }
32 `
33
34 exports[`test/errors.ts > TAP > must match snapshot 6`] = `
35 Error: relative import without parentURL {
36 "parentURL": null,
37 "url": "../foo",
38 }
39 `
40
41 exports[`test/errors.ts > TAP > must match snapshot 7`] = `
42 Error: No "exports" main defined in /x/package.json imported from /from {
43 "code": "ERR_PACKAGE_PATH_NOT_EXPORTED",
44 }
45 `
46
47 exports[`test/errors.ts > TAP > must match snapshot 8`] = `
48 Error: Package subpath './x' is not defined by "exports" in /x/package.json imported from /from {
49 "code": "ERR_PACKAGE_PATH_NOT_EXPORTED",
50 }
51 `