Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add some missing dev dependencies #13837

Merged
merged 7 commits into from
Jan 28, 2023
Merged
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
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