Commit 3def2b7 1 parent 0e56d43 commit 3def2b7 Copy full SHA for 3def2b7
File tree 2 files changed +5
-0
lines changed
test/end-to-end/exportMap
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 80
80
"types" : " ./testing/index.d.ts" ,
81
81
"require" : " ./testing/index.js"
82
82
},
83
+ "./testing/jest-preset" : {
84
+ "require" : " ./testing/jest-preset.js"
85
+ },
83
86
"./testing/*" : {
84
87
"import" : " ./testing/*" ,
85
88
"require" : " ./testing/*"
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ const { MockDocument } = require('@stencil/core/mock-doc');
7
7
const appData = require ( '@stencil/core/internal/app-data' ) ;
8
8
const { createNodeLogger } = require ( '@stencil/core/sys/node' ) ;
9
9
const { createTesting } = require ( '@stencil/core/testing' ) ;
10
+ const preset = require ( '@stencil/core/testing/jest-preset' ) ;
10
11
11
12
assert ( typeof version === 'string' ) ;
12
13
assert ( typeof run , 'function' ) ;
@@ -15,6 +16,7 @@ assert(typeof MockDocument === 'function');
15
16
assert ( Object . keys ( appData ) . length === 3 ) ;
16
17
assert ( typeof createNodeLogger === 'function' ) ;
17
18
assert ( typeof createTesting === 'function' ) ;
19
+ assert ( preset . moduleFileExtensions ) ;
18
20
19
21
console . log ( `🎉 All CJS imports successfully resolved!` ) ;
20
22
console . log ( '✅ passed!\n' ) ;
You can’t perform that action at this time.
0 commit comments