Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion constraints.pro
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ gen_enforced_field(WorkspaceCwd, 'publishConfig.access', null) :-
workspace_field(WorkspaceCwd, 'private', true).

% Enforces the engines.node field for public workspace
gen_enforced_field(WorkspaceCwd, 'engines.node', '^14.15.0 || ^16.10.0 || >=18.0.0') :-
gen_enforced_field(WorkspaceCwd, 'engines.node', '^14.18.0 || ^16.10.0 || >=18.0.0') :-
\+ workspace_field(WorkspaceCwd, 'private', true).

% Enforces the main and types field to start with ./
Expand Down
4 changes: 2 additions & 2 deletions e2e/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as util from 'util';
import * as path from 'node:path';
import * as util from 'node:util';
import dedent from 'dedent';
import {
ExecaSyncError,
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/asyncRegenerator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {runYarnInstall} from '../Utils';
import {json as runWithJson} from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/babelPluginJestHoist.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {runYarnInstall} from '../Utils';
import {json as runWithJson} from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/browserResolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {runYarnInstall} from '../Utils';
import runJest from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/chaiAssertionLibrary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {extractSummary, runYarnInstall} from '../Utils';
import runJest from '../runJest';

Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/circularInequality.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {
cleanup,
createEmptyPackage,
Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/clearCache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import * as fs from 'graceful-fs';
import runJest from '../runJest';

Expand Down
8 changes: 4 additions & 4 deletions e2e/__tests__/clearFSAndTransformCache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {cleanup, writeFiles} from '../Utils';
import runJest from '../runJest';

const dir = path.resolve(tmpdir(), 'clear_FS_and_transform_cache');
const testFileContent = `
'use strict';

const fs = require('fs');
const path = require('path');
const fs = require('node:fs');
const path = require('node:path');

const absoluteTestHelperFile = path.resolve(__dirname, './testHelper.js');

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/cliHandlesExactFilenames.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {cleanup, extractSummary, writeFiles} from '../Utils';
import runJest from '../runJest';

Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/complexItemsInErrors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {
cleanup,
createEmptyPackage,
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/console.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {extractSummary, runYarnInstall} from '../Utils';
import runJest from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/consoleLogOutputWhenRunInBand.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {cleanup, extractSummary, writeFiles} from '../Utils';
import runJest from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/coverageHandlebars.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {readFileSync} from 'graceful-fs';
import {cleanup, runYarnInstall} from '../Utils';
import runJest from '../runJest';
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/coverageProviderV8.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import runJest from '../runJest';

const DIR = path.resolve(__dirname, '../coverage-provider-v8');
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/coverageRemapping.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {readFileSync} from 'graceful-fs';
import {cleanup, runYarnInstall} from '../Utils';
import runJest from '../runJest';
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/coverageReport.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import * as fs from 'graceful-fs';
import {extractSummary, runYarnInstall} from '../Utils';
import runJest from '../runJest';
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/coverageThreshold.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {cleanup, extractSummary, writeFiles} from '../Utils';
import runJest from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/coverageTransformInstrumented.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {readFileSync} from 'graceful-fs';
import {cleanup, runYarnInstall} from '../Utils';
import runJest from '../runJest';
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/coverageWithoutTransform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {cleanup} from '../Utils';
import runJest from '../runJest';

Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/crawlSymlinks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {cleanup, writeFiles, writeSymlinks} from '../Utils';
import runJest from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/customEsmTestSequencers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {extractSummary} from '../Utils';
import runJest from '../runJest';
const dir = path.resolve(__dirname, '../custom-esm-test-sequencer');
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/customHaste.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import runJest from '../runJest';

describe('Custom Haste Integration', () => {
Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/customReporters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {cleanup, extractSummary, writeFiles} from '../Utils';
import runJest from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/customTestSequencers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {extractSummary} from '../Utils';
import runJest from '../runJest';
const dir = path.resolve(__dirname, '../custom-test-sequencer');
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/debug.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import runJest from '../runJest';

describe('jest --debug', () => {
Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/dependencyClash.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {cleanup, createEmptyPackage, writeFiles} from '../Utils';
import runJest from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/dynamicRequireDependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {json as runWithJson} from '../runJest';

const dir = path.resolve(__dirname, '../dynamic-require-dependencies');
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/each.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {extractSummary} from '../Utils';
import runJest from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/emptyDescribeWithHooks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {skipSuiteOnJasmine} from '@jest/test-utils';
import {extractSummary} from '../Utils';
import runJest from '../runJest';
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/emptySuiteError.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import runJest from '../runJest';

const DIR = path.resolve(__dirname, '../empty-suite-error');
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/executeTestsOnceInMpr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {cleanup, extractSummary, writeFiles} from '../Utils';
import runJest from '../runJest';

Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/existentRoots.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {tryRealpath} from 'jest-util';
import {cleanup, writeFiles} from '../Utils';
import runJest from '../runJest';
Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/expectAsyncMatcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {extractSummary, runYarnInstall} from '../Utils';
import runJest from '../runJest';

Expand Down
2 changes: 1 addition & 1 deletion e2e/__tests__/failures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import * as path from 'path';
import * as path from 'node:path';
import {extractSummary, runYarnInstall} from '../Utils';
import runJest from '../runJest';

Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/fatalWorkerError.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {
cleanup,
generateTestFilesToForceUsingWorkers,
Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/findRelatedFiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {cleanup, extractSummary, writeFiles} from '../Utils';
import runJest from '../runJest';

Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/forceExit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import {cleanup, writeFiles} from '../Utils';
import runJest from '../runJest';

Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/globalSetup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import * as fs from 'graceful-fs';
import {
cleanup,
Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/globalTeardown.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

import {tmpdir} from 'os';
import * as path from 'path';
import {tmpdir} from 'node:os';
import * as path from 'node:path';
import * as fs from 'graceful-fs';
import {createDirectory} from 'jest-util';
import {cleanup, runYarnInstall} from '../Utils';
Expand Down
Loading