Skip to content

Commit

Permalink
removing jest from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredwray committed May 24, 2024
1 parent 1fd651d commit 5ab94cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
34 changes: 1 addition & 33 deletions packages/cacheable-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,40 +64,8 @@
"vitest": "^1.6.0",
"xo": "^0.58.0"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{ts,js}"
],
"extensionsToTreatAsEsm": [
".ts"
],
"resolver": "ts-jest-resolver",
"moduleFileExtensions": [
"ts",
"js"
],
"transform": {
"^.+\\.(ts|tsx)$": [
"ts-jest",
{
"tsconfig": "./tsconfig.build.json",
"useESM": true
}
]
},
"testMatch": [
"**/test/*.test.(ts|js)"
],
"testEnvironment": "node"
},
"xo": {
"plugins": [
"jest"
],
"extends": [
"plugin:jest/recommended"
],
"rules": {
"rules": {
"@typescript-eslint/triple-slash-reference": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ test('cacheableRequest hashes request body as cache key', async () => {
test('cacheableRequest skips cache for streamed body', () => {
const cache = {
get() {
fail(new CacheError(new Error('Cache error'))); // eslint-disable-line jest/no-jasmine-globals
throw new CacheError(new Error('Cache error'));
},
set() {
throw new Error('cant set');
Expand Down

0 comments on commit 5ab94cc

Please sign in to comment.