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: remove unused deps from @jest/reporters #9462

Merged
merged 2 commits into from Jan 24, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,7 @@

### Chore & Maintenance

- `[@jest/reporters]` Remove unused dependencies and type exports ([#9462](https://github.com/facebook/jest/pull/9462))
- `[website]` Update pictures of reports when matchers fail ([#9214](https://github.com/facebook/jest/pull/9214))

### Performance
Expand Down
2 changes: 0 additions & 2 deletions packages/jest-reporters/package.json
Expand Up @@ -7,7 +7,6 @@
"dependencies": {
"@bcoe/v8-coverage": "^0.2.3",
"@jest/console": "^25.1.0",
"@jest/environment": "^25.1.0",
"@jest/test-result": "^25.1.0",
"@jest/transform": "^25.1.0",
"@jest/types": "^25.1.0",
Expand All @@ -22,7 +21,6 @@
"istanbul-reports": "^3.0.0",
"jest-haste-map": "^25.1.0",
"jest-resolve": "^25.1.0",
"jest-runtime": "^25.1.0",
"jest-util": "^25.1.0",
"jest-worker": "^25.1.0",
"slash": "^3.0.0",
Expand Down
14 changes: 0 additions & 14 deletions packages/jest-reporters/src/types.ts
Expand Up @@ -11,10 +11,8 @@ import {
SerializableError,
TestResult,
} from '@jest/test-result';
import {JestEnvironment as Environment} from '@jest/environment';
import {FS as HasteFS, ModuleMap} from 'jest-haste-map';
import HasteResolver = require('jest-resolve');
import Runtime = require('jest-runtime');
import {worker} from './coverage_worker';

export type ReporterOnStartOptions = {
Expand Down Expand Up @@ -76,22 +74,10 @@ export type SummaryOptions = {
width?: number;
};

export type TestFramework = (
globalConfig: Config.GlobalConfig,
config: Config.ProjectConfig,
environment: Environment,
runtime: Runtime,
testPath: string,
) => Promise<TestResult>;

export type TestRunnerOptions = {
serial: boolean;
};

export type TestRunnerContext = {
changedFiles?: Set<Config.Path>;
};

export type TestRunData = Array<{
context: Context;
matches: {allTests: number; tests: Array<Test>; total: number};
Expand Down
2 changes: 0 additions & 2 deletions packages/jest-reporters/tsconfig.json
Expand Up @@ -6,10 +6,8 @@
},
"references": [
{"path": "../jest-console"},
{"path": "../jest-environment"},
{"path": "../jest-haste-map"},
{"path": "../jest-resolve"},
{"path": "../jest-runtime"},
{"path": "../jest-test-result"},
{"path": "../jest-types"},
{"path": "../jest-util"},
Expand Down