mirror of
https://github.com/kremalicious/gatsby-redirect-from.git
synced 2024-12-22 01:03:21 +01:00
test setup
This commit is contained in:
parent
475679419f
commit
8ab2e492f0
@ -1,6 +1,6 @@
|
|||||||
node_modules
|
node_modules
|
||||||
src
|
src
|
||||||
.babelrc
|
test
|
||||||
|
babel.config.json
|
||||||
.editorconfig
|
.editorconfig
|
||||||
.eslintrc
|
.eslintrc
|
||||||
.travis.yml
|
|
||||||
|
10
package.json
10
package.json
@ -9,7 +9,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "cross-env NODE_ENV=production babel src --out-dir .",
|
"build": "cross-env NODE_ENV=production babel src --out-dir .",
|
||||||
"start": "babel -w src --out-dir .",
|
"start": "babel -w src --out-dir .",
|
||||||
"test": "npm run lint && jest --coverage",
|
"test": "npm run lint && jest --coverage --config ./test/jest.config.json",
|
||||||
"lint": "eslint ./{src,test}/**/*.js",
|
"lint": "eslint ./{src,test}/**/*.js",
|
||||||
"format": "prettier --write '{src,test}/**/*.{js,jsx}'",
|
"format": "prettier --write '{src,test}/**/*.{js,jsx}'",
|
||||||
"release": "release-it --non-interactive",
|
"release": "release-it --non-interactive",
|
||||||
@ -40,14 +40,6 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
},
|
},
|
||||||
"jest": {
|
|
||||||
"transform": {
|
|
||||||
"^.+\\.[t|j]sx?$": "babel-jest"
|
|
||||||
},
|
|
||||||
"transformIgnorePatterns": [
|
|
||||||
"node_modules/(?!chalk/.*)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"repository": "github:kremalicious/gatsby-redirect-from",
|
"repository": "github:kremalicious/gatsby-redirect-from",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/kremalicious/gatsby-redirect-from/issues"
|
"url": "https://github.com/kremalicious/gatsby-redirect-from/issues"
|
||||||
|
5
test/jest.config.json
Normal file
5
test/jest.config.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"rootDir": "../",
|
||||||
|
"coverageDirectory": "<rootDir>/coverage/",
|
||||||
|
"transformIgnorePatterns": ["node_modules/(?!chalk/.*)"]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user