Skip to content

Commit cf688a6

Browse files
committed
3.0.0-dev.1
* Removing npmignore * Adding unit tests * Updating files * Updating playground * Adding jest-imate-snapshot config
1 parent 08be8a2 commit cf688a6

File tree

11 files changed

+3203
-3919
lines changed

11 files changed

+3203
-3919
lines changed

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/index.ts'],
77
modulePathIgnorePatterns: ['pkg/', 'resources/', 'playground/', 'cypress/'],
88
testPathIgnorePatterns: ['<rootDir>/src/index.ts'],
9+
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
910
globals: {
1011
'ts-jest': {
1112
tsConfig: '<rootDir>/tsconfig.test.json',

jest.setup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('expect').extend({
2+
toMatchImageSnapshot: require('jest-image-snapshot').toMatchImageSnapshot,
3+
});

package-lock.json

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

package.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,28 @@
7878
"react-dom": ">=16.8.0"
7979
},
8080
"devDependencies": {
81-
"@djthoms/eslint-config": "^2.1.0",
81+
"@djthoms/eslint-config": "^3.0.0",
8282
"@djthoms/prettier-config": "^2.0.0",
8383
"@pika/pack": "^0.5.0",
8484
"@pika/plugin-build-node": "^0.9.2",
8585
"@pika/plugin-build-web": "^0.9.2",
8686
"@pika/plugin-ts-standard-pkg": "^0.9.2",
87-
"@testing-library/jest-dom": "^5.9.0",
88-
"@testing-library/react": "^10.0.4",
89-
"@testing-library/react-hooks": "^3.2.1",
87+
"@testing-library/jest-dom": "^5.11.1",
88+
"@testing-library/react": "^10.4.7",
89+
"@testing-library/react-hooks": "^3.3.0",
9090
"@types/classnames": "^2.2.10",
91-
"@types/jest": "^25.2.3",
92-
"@types/jquery": "^3.3.38",
91+
"@types/jest": "^26.0.5",
92+
"@types/jquery": "^3.5.0",
9393
"@types/nanoid": "^2.1.0",
94-
"@types/node": "^14.0.6",
95-
"@types/react": "^16.9.35",
96-
"eslint": "^7.1.0",
97-
"flowgen": "^1.10.0",
94+
"@types/node": "^14.0.23",
95+
"@types/react": "^16.9.43",
96+
"eslint": "^7.5.0",
97+
"flowgen": "^1.11.0",
9898
"husky": "^4.2.5",
99-
"jest": "^26.0.1",
99+
"jest": "^26.1.0",
100+
"jest-image-snapshot": "^4.0.2",
100101
"npm-run-all": "^4.1.5",
101-
"pika-plugin-legacy-browser": "^1.3.0",
102+
"pika-plugin-legacy-browser": "^1.5.0",
102103
"pika-plugin-typedefs-to-flow": "^0.0.2",
103104
"prettier": "^2.0.5",
104105
"pretty-checkbox": "^3.0.3",
@@ -107,12 +108,12 @@
107108
"react-test-renderer": "^16.13.1",
108109
"rimraf": "^3.0.2",
109110
"shx": "^0.3.2",
110-
"ts-jest": "^26.1.0",
111-
"typescript": "^3.9.3"
111+
"ts-jest": "^26.1.3",
112+
"typescript": "^3.9.7"
112113
},
113114
"dependencies": {
114115
"classnames": "^2.0.0",
115-
"nanoid": "^3.0.0"
116+
"nanoid": "^3.1.10"
116117
},
117118
"prettier": "@djthoms/prettier-config"
118119
}

0 commit comments

Comments
 (0)