-
Notifications
You must be signed in to change notification settings - Fork 450
/
enum.test.ts.snap
53 lines (37 loc) · 1.97 KB
/
enum.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`partial successfully runs the tests inside enum with 'isolatedModules: false' 1`] = `
"FAIL __tests__/import-from-d-ts-no-js.spec.ts
● Test suite failed to run
Cannot find module '../hoo-constant' from '__tests__/import-from-d-ts-no-js.spec.ts'
However, Jest was able to find:
'../hoo-constant.d.ts'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx', 'json', 'node'].
See https://jestjs.io/docs/configuration#modulefileextensions-arraystring
> 1 | import { FooEnum } from '../hoo-constant'
| ^
2 |
3 | const getTwo = (): string => FooEnum.two
4 |
at Resolver._throwModNotFoundError (../../node_modules/jest-resolve/build/resolver.js:487:11)
at Object.<anonymous> (__tests__/import-from-d-ts-no-js.spec.ts:1:1)
PASS __tests__/import-from-d-ts-has-js.spec.ts
PASS __tests__/import-from-ts.spec.ts"
`;
exports[`partial successfully runs the tests inside enum with 'isolatedModules: true' 1`] = `
"FAIL __tests__/import-from-d-ts-no-js.spec.ts
● Test suite failed to run
Cannot find module '../hoo-constant' from '__tests__/import-from-d-ts-no-js.spec.ts'
However, Jest was able to find:
'../hoo-constant.d.ts'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx', 'json', 'node'].
See https://jestjs.io/docs/configuration#modulefileextensions-arraystring
> 1 | import { FooEnum } from '../hoo-constant'
| ^
2 |
3 | const getTwo = (): string => FooEnum.two
4 |
at Resolver._throwModNotFoundError (../../node_modules/jest-resolve/build/resolver.js:487:11)
at Object.<anonymous> (__tests__/import-from-d-ts-no-js.spec.ts:1:1)
PASS __tests__/import-from-d-ts-has-js.spec.ts
PASS __tests__/import-from-ts.spec.ts"
`;