@@ -8,10 +8,10 @@ import { inspect } from "util";
88
99import "./global-setup.js" ;
1010
11- /** @typedef {{ failures: number, passses : number, pending: number, start: number, end: number } } Stats */
12- /** @typedef {{ ancestors: string[], title: string, errors: Error[], skipped: boolean } } InternalTestResult */
11+ /** @typedef {{ failures: number, passes : number, pending: number, start: number, end: number } } Stats */
12+ /** @typedef {{ ancestors: string[], title: string, duration: number, errors: Error[], skipped: boolean } } InternalTestResult */
1313
14- // Node.js workers (worker_therads ) don't support
14+ // Node.js workers (worker_threads ) don't support
1515// process.chdir, that we use multiple times in our tests.
1616// We can "polyfill" it for process.cwd() usage, but it
1717// won't affect path.* and fs.* functions.
@@ -53,7 +53,7 @@ export default async function ({
5353 stats . end = performance . now ( ) ;
5454
5555 snapshotState . _inlineSnapshots . forEach ( ( { frame } ) => {
56- // When using native ESM, errors have an URL location.
56+ // When using native ESM, errors have a URL location.
5757 // Jest expects paths.
5858 frame . file = fileURLToPath ( frame . file ) ;
5959 } ) ;
@@ -140,7 +140,7 @@ async function runTest(fn, stats, results, ancestors, name) {
140140 errors . push ( error ) ;
141141 } ) ;
142142
143- // Get suppressed errors from ``jest-matchers`` that weren't throw during
143+ // Get suppressed errors from ``jest-matchers`` that weren't thrown during
144144 // test execution and add them to the test result, potentially failing
145145 // a passing test.
146146 const { suppressedErrors } = expect . getState ( ) ;
0 commit comments