@@ -646,11 +646,11 @@ Note that this file cannot appear in the same directory as [`exec.js`][62].
646646This file's contents will be used as the input into babel at transform time just
647647like the [ ` code.js ` ] [ 63 ] file, except the output will be _ evaluated_ in the
648648[ same _ CJS_ context] [ 65 ] as the test runner itself, meaning it supports features
649- like a/sync IIFEs and debugging breakpoints (!) and has access to ` expect ` (if ,
650- for example, you are using Jest), ` require ` , and other globals provided by your
651- test framework. However, the context does not support _ ` import ` , top-level
652- await, or any other ESM syntax_ . Hence, while any file extension can be used
653- (e.g. ` .ts ` , ` .vue ` , ` .jsx ` ), this file will always be evaluated as CJS.
649+ like a/sync IIFEs, debugging breakpoints (!), and has access to mocked modules ,
650+ ` expect ` , ` require ` , and other globals/features provided by your test framework.
651+ However, the context does not support _ ` import ` , top-level await, or any other
652+ ESM syntax_ . Hence, while any file extension can be used (e.g. ` .ts ` , ` .vue ` ,
653+ ` .jsx ` ), this file will always be evaluated as CJS.
654654
655655The test will always pass unless an exception is thrown (e.g. when an ` expect() `
656656fails).
@@ -1040,12 +1040,12 @@ Note that this property cannot appear in the same test object as the
10401040
10411041The provided source will be transformed just like the [ ` code ` ] [ 85 ] property,
10421042except the output will be _ evaluated_ in the [ same _ CJS_ context] [ 65 ] as the
1043- test runner itself, meaning it supports features like a/sync IIFEs and debugging
1044- breakpoints (!) and has access to ` expect ` (if, for example, you are using
1045- Jest), ` require ` , and other globals provided by your test framework. However,
1046- the context does not support _ ` import ` , top-level await, or any other ESM
1047- syntax _ . Hence, while any file extension can be used (e.g. ` .ts ` , ` .vue ` ,
1048- ` .jsx ` ), this file will always be evaluated as CJS.
1043+ test runner itself, meaning it supports features like a/sync IIFEs, debugging
1044+ breakpoints (!), and has access to mocked modules, ` expect ` , ` require ` , and
1045+ other globals/features provided by your test framework. However, the context
1046+ does not support _ ` import ` , top-level await, or any other ESM syntax _ . Hence,
1047+ while any file extension can be used (e.g. ` .ts ` , ` .vue ` , ` .jsx ` ), this file
1048+ will always be evaluated as CJS.
10491049
10501050The test will always pass unless an exception is thrown (e.g. when an ` expect() `
10511051fails).
0 commit comments