Skip to content

Commit

Permalink
chore(deps): remove type-fest (#13231)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas authored Sep 9, 2022
1 parent 2c31c26 commit 6553211
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
11 changes: 6 additions & 5 deletions e2e/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import * as path from 'path';
import dedent = require('dedent');
import {ExecaReturnValue, sync as spawnSync} from 'execa';
import * as fs from 'graceful-fs';
import type {PackageJson} from 'type-fest';
import which = require('which');
import type {Config} from '@jest/types';

Expand Down Expand Up @@ -172,19 +171,21 @@ export const sortLines = (output: string) =>
.map(str => str.trim())
.join('\n');

export interface JestPackageJson extends PackageJson {
jest: Config.InitialOptions;
export interface PackageJson {
dependencies?: Record<string, string>;
devDependencies?: Record<string, string>;
jest?: Config.InitialOptions;
}

const DEFAULT_PACKAGE_JSON: JestPackageJson = {
const DEFAULT_PACKAGE_JSON: PackageJson = {
jest: {
testEnvironment: 'node',
},
};

export const createEmptyPackage = (
directory: string,
packageJson: JestPackageJson = DEFAULT_PACKAGE_JSON,
packageJson: PackageJson = DEFAULT_PACKAGE_JSON,
) => {
const packageJsonWithDefaults = {
...packageJson,
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
"strip-json-comments": "^3.1.1",
"tempy": "^1.0.0",
"ts-node": "^10.5.0",
"type-fest": "^2.11.2",
"typescript": "^4.8.2",
"which": "^2.0.1"
},
Expand Down
3 changes: 1 addition & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2808,7 +2808,6 @@ __metadata:
strip-json-comments: ^3.1.1
tempy: ^1.0.0
ts-node: ^10.5.0
type-fest: ^2.11.2
typescript: ^4.8.2
which: ^2.0.1
languageName: unknown
Expand Down Expand Up @@ -20236,7 +20235,7 @@ __metadata:
languageName: node
linkType: hard

"type-fest@npm:^2.0.0, type-fest@npm:^2.11.2, type-fest@npm:^2.5.0":
"type-fest@npm:^2.0.0, type-fest@npm:^2.5.0":
version: 2.19.0
resolution: "type-fest@npm:2.19.0"
checksum: a4ef07ece297c9fba78fc1bd6d85dff4472fe043ede98bd4710d2615d15776902b595abf62bd78339ed6278f021235fb28a96361f8be86ed754f778973a0d278
Expand Down

0 comments on commit 6553211

Please sign in to comment.