Skip to content

Commit abc27e1

Browse files
1 parent 7c6fe16 commit abc27e1

26 files changed

Lines changed: 68 additions & 93 deletions

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,8 @@
5050
{ "allow": ["fp-ts/*", "fp-ts-contrib/*", "io-ts/*", "hyper-ts/lib/*", "nanohtml/*"] }
5151
],
5252
"quotes": ["error", "single", { "avoidEscape": true }]
53+
},
54+
"settings": {
55+
"import/core-modules": ["@jest/globals"]
5356
}
5457
}

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = {
55
isolatedModules: true,
66
},
77
},
8+
injectGlobals: false,
89
preset: 'ts-jest',
910
testEnvironment: 'node',
1011
roots: ['./src/', './test/'],

package-lock.json

Lines changed: 0 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"@types/express": "^4.17.14",
5757
"@types/html-escaper": "^3.0.0",
5858
"@types/http-errors": "^1.8.2",
59-
"@types/jest": "^28.1.7",
6059
"@types/make-fetch-happen": "^10.0.0",
6160
"@types/markdown-it": "^12.2.3",
6261
"@types/node": "^16.11.68",

test/home.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect } from '@jest/globals'
12
import * as E from 'fp-ts/Either'
23
import { MediaType, Status } from 'hyper-ts'
34
import * as _ from '../src/home'

test/html.test.ts

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

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

test/infrastructure.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, jest } from '@jest/globals'
12
import { Temporal } from '@js-temporal/polyfill'
23
import { Doi } from 'doi-ts'
34
import fetchMock from 'fetch-mock'

test/legacy-prereview.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect } from '@jest/globals'
12
import fetchMock from 'fetch-mock'
23
import * as E from 'fp-ts/Either'
34
import { Status } from 'hyper-ts'

test/log-in.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect } from '@jest/globals'
12
import fetchMock from 'fetch-mock'
23
import * as E from 'fp-ts/Either'
34
import * as TE from 'fp-ts/TaskEither'

test/middleware.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect } from '@jest/globals'
12
import * as E from 'fp-ts/Either'
23
import { MediaType, Status } from 'hyper-ts'
34
import * as _ from '../src/middleware'

0 commit comments

Comments
 (0)