Debian Codegraph @

tap-snapshots/test/config.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/config.ts > TAP > basic parsing cases > {"config":{"dialects":"yolo"},"sources":[],"ok":false} > must match snapshot 1`] = `
9 tshy.dialects must be an array including "esm" and/or "commonjs", got: "yolo"
10 `
11
12 exports[`test/config.ts > TAP > basic parsing cases > {"config":{"exports":{"./blah":{"require":"./src/notallowed"}}},"sources":[],"ok":false} > must match snapshot 1`] = `
13 tshy.exports ./blah unbuilt exports must not be in ./src, and exports in src must be string values. got: {"require":"./src/notallowed"}
14 `
15
16 exports[`test/config.ts > TAP > basic parsing cases > {"config":{"imports":"blah"},"sources":[],"ok":false} > must match snapshot 1`] = `
17 invalid imports module specifier: 0
18 `
19
20 exports[`test/config.ts > TAP > basic parsing cases > {"config":{"imports":["blah"]},"sources":[],"ok":false} > must match snapshot 1`] = `
21 invalid imports module specifier: 0
22 `
23
24 exports[`test/config.ts > TAP > basic parsing cases > {"config":{"main":"blah"},"sources":[],"ok":false} > must match snapshot 1`] = `
25 tshy.main must be a boolean value if specified, got: blah
26 `
27
28 exports[`test/config.ts > TAP > basic parsing cases > {"config":{"project":"thisFileDoesNotExist.json"},"sources":[],"ok":false} > must match snapshot 1`] = `
29 tshy.project must point to a tsconfig file on disk, got: "thisFileDoesNotExist.json"
30 `