Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 9ee6398

Browse files
committed
refactor: clean up package.json
1 parent 55cbd51 commit 9ee6398

File tree

6 files changed

+17
-248
lines changed

6 files changed

+17
-248
lines changed

.jest.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
setupFiles: ['<rootDir>/.jest.setup.js'],
3+
coverageDirectory: './coverage/',
4+
testURL: 'http://localhost/',
5+
collectCoverage: true,
6+
snapshotSerializers: ['enzyme-to-json/serializer'],
7+
testPathIgnorePatterns: [
8+
'<rootDir>/.next/',
9+
'<rootDir>/node_modules/',
10+
'<rootDir>/cypress',
11+
],
12+
}
File renamed without changes.

jest.config.js

-4
This file was deleted.

package.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
"local": "cross-env GOAL=local run-p server",
99
"lint": "eslint --fix pages/**/*.js components/**/* containers/**/* stores/**/*",
1010
"lint:watch": "esw -w pages/**/*.js components/**/* containers/**/* stores/**/*",
11-
"pretest": "npm run lint",
12-
"test": "cross-env NODE_ENV=test jest",
13-
"test:watch": "npm run test -- --watch",
14-
"test:cover": "npm run test -- --coverage",
1511
"server": "npm run clean && node server.js",
1612
"build": "run-s dist clean",
1713
"build:only": "npm run i18n && next build",
@@ -24,10 +20,11 @@
2420
"precommit": "lint-staged",
2521
"gen": "plop --plopfile ./utils/scripts/generators/index.js",
2622
"analyze": "cross-env ANALYZE=1 next build",
27-
"api:play": "GRAPHQL_CONFIG_ENDPOINT_NAME=mastani graphql playground",
28-
"api:graph": "graphql voyager",
29-
"graph:mastani": "graphql get-schema -e mastani && head ./schema.graphql",
30-
"graph:example": "graphql get-schema -e example && graphql voyager",
23+
"test": "cross-env NODE_ENV=test GOAL=test jest --config .jest.config.js",
24+
"test:dev": "cross-env NODE_ENV=dev GOAL=test jest --config .jest.config.js",
25+
"test:watch": "npm run test -- --watch",
26+
"test:cover": "npm run test -- --coverage",
27+
"test:e2e": "cypress open",
3128
"coveralls": "cat ./coverage/lcov.info | coveralls",
3229
"commitmsg": "commitlint -E GIT_PARAMS"
3330
},

publish.sh

-15
This file was deleted.

schema.graphql

-221
This file was deleted.

0 commit comments

Comments
 (0)