Skip to content

Commit 992f37c

Browse files
committed
Better TypeScript configuration for jest
1 parent 7364aea commit 992f37c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+546
-203
lines changed

__tests__/ArraySeq.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from '@jest/globals';
12
import { Seq } from 'immutable';
23

34
describe('ArraySequence', () => {

__tests__/Comparator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from '@jest/globals';
12
import { List, OrderedSet, Seq, type Comparator, PairSorting } from 'immutable';
23

34
const sourceNumbers: readonly number[] = [3, 4, 5, 6, 7, 9, 10, 12, 90, 92, 95];

__tests__/Conversion.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from '@jest/globals';
12
import { fromJS, is, List, Map, OrderedMap, Record } from 'immutable';
23
import fc, { type JsonValue } from 'fast-check';
34

__tests__/Equality.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from '@jest/globals';
12
import { is, List, Map, Seq, Set } from 'immutable';
23
import fc from 'fast-check';
34

@@ -143,6 +144,7 @@ describe('Equality', () => {
143144
fc.assert(
144145
fc.property(genVal, genVal, (a, b) => {
145146
if (is(a, b)) {
147+
// eslint-disable-next-line jest/no-conditional-expect
146148
expect(a.hashCode()).toBe(b.hashCode());
147149
}
148150
}),

__tests__/IndexedSeq.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from '@jest/globals';
12
import { Seq } from 'immutable';
23

34
describe('IndexedSequence', () => {

__tests__/KeyedSeq.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import { describe, expect, it } from '@jest/globals';
12
import { Range, Seq } from 'immutable';
23
import fc from 'fast-check';
34

45
describe('KeyedSeq', () => {
5-
it('it iterates equivalently', () => {
6+
it('iterates equivalently', () => {
67
fc.assert(
78
fc.property(fc.array(fc.integer()), (ints) => {
89
const seq = Seq(ints);

__tests__/List.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from '@jest/globals';
12
import { fromJS, List, Map, Range, Seq, Set } from 'immutable';
23
import fc from 'fast-check';
34
import { create as createSeed } from 'random-seed';

__tests__/ListJS.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from '@jest/globals';
12
import { List } from 'immutable';
23

34
const NON_NUMBERS = {

__tests__/Map.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it, jest } from '@jest/globals';
12
import { fromJS, is, List, Map, Range, Record, Seq } from 'immutable';
23
import fc from 'fast-check';
34

__tests__/MultiRequire.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it, jest } from '@jest/globals';
12
import * as Immutable1 from '../src/Immutable';
23

34
jest.resetModules();

0 commit comments

Comments
 (0)