Skip to content

Commit 3b1a091

Browse files
committed
Move jest config to separate file
1 parent ac4e0f9 commit 3b1a091

File tree

2 files changed

+78
-78
lines changed

2 files changed

+78
-78
lines changed

jest.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
setupFiles: [
3+
'<rootDir>/__tests__/shim.js',
4+
'<rootDir>/__tests__/config.js',
5+
],
6+
testPathIgnorePatterns: [
7+
'<rootDir>/__tests__/shim.js',
8+
'<rootDir>/__tests__/config.js',
9+
'<rootDir>/__tests__/helpers/',
10+
'<rootDir>/node_modules/',
11+
],
12+
collectCoverage: true,
13+
};

package.json

Lines changed: 65 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,67 @@
11
{
2-
"name": "react-signature-pad-wrapper",
3-
"version": "1.2.10",
4-
"description": "A React component wrapper for signature_pad",
5-
"main": "dist/react-signature-pad-wrapper.js",
6-
"module": "dist/react-signature-pad-wrapper.es.js",
7-
"files": [
8-
"dist"
9-
],
10-
"scripts": {
11-
"test": "jest",
12-
"build": "./node_modules/.bin/rollup --config",
13-
"watch": "./node_modules/.bin/rollup --config --watch",
14-
"lint": "./node_modules/.bin/eslint ./",
15-
"clean": "rm -rf dist"
16-
},
17-
"keywords": [
18-
"react",
19-
"signature_pad"
20-
],
21-
"author": "Michael Dzjaparidze",
22-
"license": "MIT",
23-
"repository": {
24-
"type": "git",
25-
"url": "git+https://github.com/michaeldzjap/react-signature-pad-wrapper.git"
26-
},
27-
"bugs": {
28-
"url": "https://github.com/michaeldzjap/react-signature-pad-wrapper/issues"
29-
},
30-
"peerDependencies": {
31-
"react": "^15.5.0 || ^16.0.0"
32-
},
33-
"devDependencies": {
34-
"@babel/core": "^7.9.6",
35-
"@babel/plugin-external-helpers": "^7.8.3",
36-
"@babel/plugin-proposal-class-properties": "^7.8.3",
37-
"@babel/plugin-transform-runtime": "^7.9.6",
38-
"@babel/preset-env": "^7.9.6",
39-
"@babel/preset-react": "^7.9.4",
40-
"babel-eslint": "^10.1.0",
41-
"babel-jest": "^26.0.1",
42-
"canvas": "^2.6.1",
43-
"enzyme": "^3.11.0",
44-
"enzyme-adapter-react-16": "^1.15.2",
45-
"eslint": "^7.0.0",
46-
"eslint-plugin-import": "^2.20.2",
47-
"eslint-plugin-jest": "^23.13.1",
48-
"eslint-plugin-react": "^7.20.0",
49-
"jest": "^26.0.1",
50-
"react-dom": "^16.13.1",
51-
"rollup": "^2.10.5",
52-
"rollup-plugin-babel": "^4.4.0",
53-
"rollup-plugin-commonjs": "^10.1.0",
54-
"rollup-plugin-eslint": "^7.0.0",
55-
"rollup-plugin-node-resolve": "^5.2.0",
56-
"rollup-plugin-sourcemaps": "^0.6.2",
57-
"rollup-plugin-terser": "^5.3.0",
58-
"rollup-plugin-uglify": "^6.0.4"
59-
},
60-
"dependencies": {
61-
"@babel/runtime": "^7.9.6",
62-
"prop-types": "^15.7.2",
63-
"react": "^16.13.1",
64-
"signature_pad": "^2.3.2",
65-
"throttle-debounce": "^2.1.0"
66-
},
67-
"jest": {
68-
"setupFiles": [
69-
"<rootDir>/__tests__/shim.js",
70-
"<rootDir>/__tests__/config.js"
71-
],
72-
"testPathIgnorePatterns": [
73-
"<rootDir>/__tests__/shim.js",
74-
"<rootDir>/__tests__/config.js",
75-
"<rootDir>/__tests__/helpers/",
76-
"<rootDir>/node_modules/"
77-
],
78-
"collectCoverage": true
79-
}
2+
"name": "react-signature-pad-wrapper",
3+
"version": "1.2.10",
4+
"description": "A React component wrapper for signature_pad",
5+
"main": "dist/react-signature-pad-wrapper.js",
6+
"module": "dist/react-signature-pad-wrapper.es.js",
7+
"files": [
8+
"dist"
9+
],
10+
"scripts": {
11+
"test": "jest",
12+
"build": "./node_modules/.bin/rollup --config",
13+
"watch": "./node_modules/.bin/rollup --config --watch",
14+
"lint": "./node_modules/.bin/eslint ./",
15+
"clean": "rm -rf dist"
16+
},
17+
"keywords": [
18+
"react",
19+
"signature_pad"
20+
],
21+
"author": "Michael Dzjaparidze",
22+
"license": "MIT",
23+
"repository": {
24+
"type": "git",
25+
"url": "git+https://github.com/michaeldzjap/react-signature-pad-wrapper.git"
26+
},
27+
"bugs": {
28+
"url": "https://github.com/michaeldzjap/react-signature-pad-wrapper/issues"
29+
},
30+
"peerDependencies": {
31+
"react": "^15.5.0 || ^16.0.0"
32+
},
33+
"devDependencies": {
34+
"@babel/core": "^7.9.6",
35+
"@babel/plugin-external-helpers": "^7.8.3",
36+
"@babel/plugin-proposal-class-properties": "^7.8.3",
37+
"@babel/plugin-transform-runtime": "^7.9.6",
38+
"@babel/preset-env": "^7.9.6",
39+
"@babel/preset-react": "^7.9.4",
40+
"babel-eslint": "^10.1.0",
41+
"babel-jest": "^26.0.1",
42+
"canvas": "^2.6.1",
43+
"enzyme": "^3.11.0",
44+
"enzyme-adapter-react-16": "^1.15.2",
45+
"eslint": "^7.0.0",
46+
"eslint-plugin-import": "^2.20.2",
47+
"eslint-plugin-jest": "^23.13.1",
48+
"eslint-plugin-react": "^7.20.0",
49+
"jest": "^26.0.1",
50+
"react-dom": "^16.13.1",
51+
"rollup": "^2.10.5",
52+
"rollup-plugin-babel": "^4.4.0",
53+
"rollup-plugin-commonjs": "^10.1.0",
54+
"rollup-plugin-eslint": "^7.0.0",
55+
"rollup-plugin-node-resolve": "^5.2.0",
56+
"rollup-plugin-sourcemaps": "^0.6.2",
57+
"rollup-plugin-terser": "^5.3.0",
58+
"rollup-plugin-uglify": "^6.0.4"
59+
},
60+
"dependencies": {
61+
"@babel/runtime": "^7.9.6",
62+
"prop-types": "^15.7.2",
63+
"react": "^16.13.1",
64+
"signature_pad": "^2.3.2",
65+
"throttle-debounce": "^2.1.0"
66+
}
8067
}

0 commit comments

Comments
 (0)