mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-10 19:56:54 +03:00
chore(deps): update dependency eslint-plugin-jest to v24 (#772)
* chore(deps): update dependency eslint-plugin-jest to v24 * Fix lint * Fix Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
parent
2f7cf3efac
commit
9caf393abf
|
@ -24,7 +24,7 @@
|
|||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-babel": "^5.3.1",
|
||||
"eslint-plugin-jest": "^23.20.0",
|
||||
"eslint-plugin-jest": "^24.4.0",
|
||||
"eslint-plugin-react": "^7.24.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"fork-ts-checker-webpack-plugin": "^6.3.2",
|
||||
|
|
|
@ -4,9 +4,9 @@ import scClient from 'socketcluster-client';
|
|||
|
||||
describe('Server', function () {
|
||||
let scServer: childProcess.ChildProcess;
|
||||
beforeAll(function (done) {
|
||||
beforeAll(async function () {
|
||||
scServer = childProcess.fork(__dirname + '/../bin/redux-devtools.js');
|
||||
setTimeout(done, 3000);
|
||||
await new Promise((resolve) => setTimeout(resolve, 3000));
|
||||
});
|
||||
|
||||
afterAll(function () {
|
||||
|
|
|
@ -12,7 +12,7 @@ const computedStates = [
|
|||
{ state: [0, 2, 3, 4] },
|
||||
];
|
||||
|
||||
const test = (s1: { state: unknown } | undefined, s2: { state: unknown }) =>
|
||||
const runTest = (s1: { state: unknown } | undefined, s2: { state: unknown }) =>
|
||||
compare(s1, s2, ({ path, curState }) =>
|
||||
expect(
|
||||
`expect(store${path}).toEqual(${curState as number | string});`
|
||||
|
@ -21,38 +21,38 @@ const test = (s1: { state: unknown } | undefined, s2: { state: unknown }) =>
|
|||
|
||||
describe('Assertions', () => {
|
||||
it('should return initial state', () => {
|
||||
test(undefined, computedStates[0]);
|
||||
runTest(undefined, computedStates[0]);
|
||||
});
|
||||
|
||||
it('should add element', () => {
|
||||
test(computedStates[0], computedStates[1]);
|
||||
runTest(computedStates[0], computedStates[1]);
|
||||
});
|
||||
|
||||
it('should remove element', () => {
|
||||
test(computedStates[1], computedStates[0]);
|
||||
runTest(computedStates[1], computedStates[0]);
|
||||
});
|
||||
|
||||
it('should change element', () => {
|
||||
test(computedStates[1], computedStates[2]);
|
||||
runTest(computedStates[1], computedStates[2]);
|
||||
});
|
||||
|
||||
it('should add, change and remove elements', () => {
|
||||
test(computedStates[2], computedStates[3]);
|
||||
runTest(computedStates[2], computedStates[3]);
|
||||
});
|
||||
|
||||
it('should change in array', () => {
|
||||
test(computedStates[3], computedStates[4]);
|
||||
runTest(computedStates[3], computedStates[4]);
|
||||
});
|
||||
|
||||
it('should remove elements in array', () => {
|
||||
test(computedStates[5], computedStates[6]);
|
||||
runTest(computedStates[5], computedStates[6]);
|
||||
});
|
||||
|
||||
it('should add elements in array', () => {
|
||||
test(computedStates[6], computedStates[5]);
|
||||
runTest(computedStates[6], computedStates[5]);
|
||||
});
|
||||
|
||||
it('should add and change elements in array', () => {
|
||||
test(computedStates[5], computedStates[7]);
|
||||
runTest(computedStates[5], computedStates[7]);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -21,6 +21,7 @@ describe('Immutable', function () {
|
|||
const stringified: { [key: string]: string } = {};
|
||||
describe('Stringify', function () {
|
||||
Object.keys(data).forEach(function (key) {
|
||||
// eslint-disable-next-line jest/valid-title
|
||||
it(key, function () {
|
||||
stringified[key] = stringify(data[key as keyof typeof data]);
|
||||
expect(stringified[key]).toMatchSnapshot();
|
||||
|
@ -30,6 +31,7 @@ describe('Immutable', function () {
|
|||
|
||||
describe('Parse', function () {
|
||||
Object.keys(data).forEach(function (key) {
|
||||
// eslint-disable-next-line jest/valid-title
|
||||
it(key, function () {
|
||||
expect(parse(stringified[key])).toEqual(data[key as keyof typeof data]);
|
||||
});
|
||||
|
@ -142,11 +144,13 @@ describe('Immutable', function () {
|
|||
const stringified = serializeCustom.stringify(
|
||||
data[key as keyof typeof data]
|
||||
);
|
||||
// eslint-disable-next-line jest/valid-title
|
||||
it(key, function () {
|
||||
const deserialized = serializeCustom.parse(stringified);
|
||||
expect(deserialized).toEqual(data[key as keyof typeof data]);
|
||||
if (key === 'map' || key === 'orderedMap') {
|
||||
const deserializedDefault = parse(stringified);
|
||||
// eslint-disable-next-line jest/no-conditional-expect
|
||||
expect(
|
||||
(
|
||||
deserializedDefault as
|
||||
|
|
106
yarn.lock
106
yarn.lock
|
@ -6943,7 +6943,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/json-schema@npm:^7.0.9":
|
||||
"@types/json-schema@npm:^7.0.7, @types/json-schema@npm:^7.0.9":
|
||||
version: 7.0.9
|
||||
resolution: "@types/json-schema@npm:7.0.9"
|
||||
checksum: 259d0e25f11a21ba5c708f7ea47196bd396e379fddb79c76f9f4f62c945879dc21657904914313ec2754e443c5018ea8372362f323f30e0792897fdb2098a705
|
||||
|
@ -7809,17 +7809,19 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/experimental-utils@npm:^2.5.0":
|
||||
version: 2.34.0
|
||||
resolution: "@typescript-eslint/experimental-utils@npm:2.34.0"
|
||||
"@typescript-eslint/experimental-utils@npm:^4.0.1":
|
||||
version: 4.29.3
|
||||
resolution: "@typescript-eslint/experimental-utils@npm:4.29.3"
|
||||
dependencies:
|
||||
"@types/json-schema": ^7.0.3
|
||||
"@typescript-eslint/typescript-estree": 2.34.0
|
||||
eslint-scope: ^5.0.0
|
||||
eslint-utils: ^2.0.0
|
||||
"@types/json-schema": ^7.0.7
|
||||
"@typescript-eslint/scope-manager": 4.29.3
|
||||
"@typescript-eslint/types": 4.29.3
|
||||
"@typescript-eslint/typescript-estree": 4.29.3
|
||||
eslint-scope: ^5.1.1
|
||||
eslint-utils: ^3.0.0
|
||||
peerDependencies:
|
||||
eslint: "*"
|
||||
checksum: 3d267185a727dad276921d4b7b9d95247ffc50740f944c8f3f66ae1556b9f3529632bff4e921a9bfe0d0b0c55542ff2ff6479615a4f4a01645e49893f32b6350
|
||||
checksum: 7cd398bf3fccee1c769006c9d28fc0a353c2978cbc33e21449d186ab413ccf5f731b3ac30f557550c1daac767a5b97dce15ec10fe9ad5a632846d285dafac5b0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -7841,6 +7843,16 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/scope-manager@npm:4.29.3":
|
||||
version: 4.29.3
|
||||
resolution: "@typescript-eslint/scope-manager@npm:4.29.3"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 4.29.3
|
||||
"@typescript-eslint/visitor-keys": 4.29.3
|
||||
checksum: 53a4d3cd0844df789ad3548644d9214cf234ce87bbc7843c55949f63e98925b4685b36f0514afbab891b4f8f0da85c249850023be5d5e9b175780aa62d181aac
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/types@npm:3.10.1":
|
||||
version: 3.10.1
|
||||
resolution: "@typescript-eslint/types@npm:3.10.1"
|
||||
|
@ -7848,21 +7860,10 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/typescript-estree@npm:2.34.0":
|
||||
version: 2.34.0
|
||||
resolution: "@typescript-eslint/typescript-estree@npm:2.34.0"
|
||||
dependencies:
|
||||
debug: ^4.1.1
|
||||
eslint-visitor-keys: ^1.1.0
|
||||
glob: ^7.1.6
|
||||
is-glob: ^4.0.1
|
||||
lodash: ^4.17.15
|
||||
semver: ^7.3.2
|
||||
tsutils: ^3.17.1
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 6eb689513765350daaf0ba12ef204061e12a8add557b4eafcc63fb0ab9345eee6ca68e64e4b88625a2b844802cfc44cbad47468840cfc990a40d27457ec75390
|
||||
"@typescript-eslint/types@npm:4.29.3":
|
||||
version: 4.29.3
|
||||
resolution: "@typescript-eslint/types@npm:4.29.3"
|
||||
checksum: 26fd2bd6782b763ff6d5ef3bcc08e1d29b64d15ef6f3604203f6171517935d822c103f803d8755c8e0cb77319143e5d5108dc90e8e897c8e72bab9f178be67ce
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -7885,6 +7886,24 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/typescript-estree@npm:4.29.3":
|
||||
version: 4.29.3
|
||||
resolution: "@typescript-eslint/typescript-estree@npm:4.29.3"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 4.29.3
|
||||
"@typescript-eslint/visitor-keys": 4.29.3
|
||||
debug: ^4.3.1
|
||||
globby: ^11.0.3
|
||||
is-glob: ^4.0.1
|
||||
semver: ^7.3.5
|
||||
tsutils: ^3.21.0
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: b7ea37db1a2f43806bf16090dfb44c7243ad07b7cb75d398fc2a1ce347fa04a59a5c729a41d1e34862cc3ed60275f5565fe3343393df1c42d95395ed42c761f0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/visitor-keys@npm:3.10.1":
|
||||
version: 3.10.1
|
||||
resolution: "@typescript-eslint/visitor-keys@npm:3.10.1"
|
||||
|
@ -7894,6 +7913,16 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/visitor-keys@npm:4.29.3":
|
||||
version: 4.29.3
|
||||
resolution: "@typescript-eslint/visitor-keys@npm:4.29.3"
|
||||
dependencies:
|
||||
"@typescript-eslint/types": 4.29.3
|
||||
eslint-visitor-keys: ^2.0.0
|
||||
checksum: 76d485cb573cfccb8a6aded5b98fd58266c10f82362685d3d0b870e197cbe5e3d61b485e220a7a973765c4861df9ea52a35757ecb818f125e405925556ee1f90
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@webassemblyjs/ast@npm:1.9.0":
|
||||
version: 1.9.0
|
||||
resolution: "@webassemblyjs/ast@npm:1.9.0"
|
||||
|
@ -13812,14 +13841,18 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-plugin-jest@npm:^23.20.0":
|
||||
version: 23.20.0
|
||||
resolution: "eslint-plugin-jest@npm:23.20.0"
|
||||
"eslint-plugin-jest@npm:^24.4.0":
|
||||
version: 24.4.0
|
||||
resolution: "eslint-plugin-jest@npm:24.4.0"
|
||||
dependencies:
|
||||
"@typescript-eslint/experimental-utils": ^2.5.0
|
||||
"@typescript-eslint/experimental-utils": ^4.0.1
|
||||
peerDependencies:
|
||||
"@typescript-eslint/eslint-plugin": ">= 4"
|
||||
eslint: ">=5"
|
||||
checksum: 67d166c050f0c8f061785d553583b5c77d394c0140a931eb37072288af779b2d442abcad931c9ef0016e2fd29267216f510d189e40c1b47658365e564fe0c6a4
|
||||
peerDependenciesMeta:
|
||||
"@typescript-eslint/eslint-plugin":
|
||||
optional: true
|
||||
checksum: ffa3f019420e6263db6d1236fda6fd2650cea89e84bd975bd56813aa72e46f997d5350c3d08e1608f3049854e9ff651028b692356b1615cb7bd1862f71ed0f88
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -13911,6 +13944,17 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-utils@npm:^3.0.0":
|
||||
version: 3.0.0
|
||||
resolution: "eslint-utils@npm:3.0.0"
|
||||
dependencies:
|
||||
eslint-visitor-keys: ^2.0.0
|
||||
peerDependencies:
|
||||
eslint: ">=5"
|
||||
checksum: 0668fe02f5adab2e5a367eee5089f4c39033af20499df88fe4e6aba2015c20720404d8c3d6349b6f716b08fdf91b9da4e5d5481f265049278099c4c836ccb619
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint-visitor-keys@npm:^1.0.0, eslint-visitor-keys@npm:^1.1.0, eslint-visitor-keys@npm:^1.3.0":
|
||||
version: 1.3.0
|
||||
resolution: "eslint-visitor-keys@npm:1.3.0"
|
||||
|
@ -25828,7 +25872,7 @@ resolve@^2.0.0-next.3:
|
|||
eslint: ^7.32.0
|
||||
eslint-config-prettier: ^8.3.0
|
||||
eslint-plugin-babel: ^5.3.1
|
||||
eslint-plugin-jest: ^23.20.0
|
||||
eslint-plugin-jest: ^24.4.0
|
||||
eslint-plugin-react: ^7.24.0
|
||||
file-loader: ^6.2.0
|
||||
fork-ts-checker-webpack-plugin: ^6.3.2
|
||||
|
@ -28605,7 +28649,7 @@ resolve@^2.0.0-next.3:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"tsutils@npm:^3.17.1":
|
||||
"tsutils@npm:^3.17.1, tsutils@npm:^3.21.0":
|
||||
version: 3.21.0
|
||||
resolution: "tsutils@npm:3.21.0"
|
||||
dependencies:
|
||||
|
|
Loading…
Reference in New Issue
Block a user