Skip to content

Commit

Permalink
chore: add some missing dev dependencies (#13837)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Jan 28, 2023
1 parent 742302f commit fc8562d
Show file tree
Hide file tree
Showing 18 changed files with 1,794 additions and 15 deletions.
4 changes: 3 additions & 1 deletion e2e/__tests__/transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import runJest, {json as runWithJson} from '../runJest';
describe('babel-jest', () => {
const dir = path.resolve(__dirname, '..', 'transform/babel-jest');

beforeEach(() => {
beforeAll(() => {
runYarnInstall(dir);
});

Expand Down Expand Up @@ -270,6 +270,7 @@ describe('transform-testrunner', () => {
const dir = path.resolve(__dirname, '../transform/transform-testrunner');

it('should transform testRunner', () => {
runYarnInstall(dir);
const {json, stderr} = runWithJson(dir, ['--no-cache']);
expect(stderr).toMatch(/PASS/);
expect(json.success).toBe(true);
Expand Down Expand Up @@ -333,6 +334,7 @@ describe('transform-esm-runner', () => {

describe('transform-esm-testrunner', () => {
const dir = path.resolve(__dirname, '../transform/transform-esm-testrunner');
runYarnInstall(dir);
test('runs test with native ESM', () => {
const {json, stderr} = runWithJson(dir, ['--no-cache'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
Expand Down
3 changes: 3 additions & 0 deletions e2e/transform/transform-esm-testrunner/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"type": "module",
"dependencies": {
"@jest/test-result": "link:../../../packages/jest-test-result"
},
"jest": {
"rootDir": "./",
"testRunner": "<rootDir>/test-runner.mjs"
Expand Down
19 changes: 19 additions & 0 deletions e2e/transform/transform-esm-testrunner/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!

__metadata:
version: 6

"@jest/test-result@link:../../../packages/jest-test-result::locator=root-workspace-0b6124%40workspace%3A.":
version: 0.0.0-use.local
resolution: "@jest/test-result@link:../../../packages/jest-test-result::locator=root-workspace-0b6124%40workspace%3A."
languageName: node
linkType: soft

"root-workspace-0b6124@workspace:.":
version: 0.0.0-use.local
resolution: "root-workspace-0b6124@workspace:."
dependencies:
"@jest/test-result": "link:../../../packages/jest-test-result"
languageName: unknown
linkType: soft
3 changes: 2 additions & 1 deletion e2e/transform/transform-testrunner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"dependencies": {
"@babel/preset-env": "^7.0.0",
"@babel/preset-typescript": "^7.0.0"
"@babel/preset-typescript": "^7.0.0",
"@jest/test-result": "link:../../../packages/jest-test-result"
}
}
Loading

0 comments on commit fc8562d

Please sign in to comment.