Skip to content

Commit f0bf566

Browse files
committed
docs(readme): small changes to verbiage around exec functionality
1 parent a2c996f commit f0bf566

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -646,11 +646,11 @@ Note that this file cannot appear in the same directory as [`exec.js`][62].
646646
This file's contents will be used as the input into babel at transform time just
647647
like 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

655655
The test will always pass unless an exception is thrown (e.g. when an `expect()`
656656
fails).
@@ -1040,12 +1040,12 @@ Note that this property cannot appear in the same test object as the
10401040

10411041
The provided source will be transformed just like the [`code`][85] property,
10421042
except 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

10501050
The test will always pass unless an exception is thrown (e.g. when an `expect()`
10511051
fails).

0 commit comments

Comments
 (0)