mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
tests(react): create tests for the react bindings to core (#17551)
* Add tests. * updates after API meeting. * test(): add tests for create controller components. * correct testing for controller component * Ensure tests properly cleanup after each run. * create common test utils for overlay and controllers. * initial tests for ion router outlet * simple update. * add mocks for jest tests.
This commit is contained in:
@@ -24,7 +24,8 @@
|
||||
"clean": "rm -rf dist",
|
||||
"compile": "npm run tsc",
|
||||
"deploy": "np --any-branch",
|
||||
"tsc": "tsc -p ."
|
||||
"tsc": "tsc -p .",
|
||||
"test": "jest"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
@@ -33,25 +34,39 @@
|
||||
"dist/"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@trust/webcrypto": "^0.9.2",
|
||||
"@types/jest": "23.3.9",
|
||||
"@types/node": "10.12.9",
|
||||
"@types/react": "16.7.6",
|
||||
"@types/react-dom": "16.0.9",
|
||||
"@types/react-router": "^4.4.3",
|
||||
"@types/react-router": "^4.4.4",
|
||||
"@types/react-router-dom": "^4.3.1",
|
||||
"jest": "^23.0.0",
|
||||
"jest-dom": "^3.0.2",
|
||||
"np": "^3.1.0",
|
||||
"react": "^16.7.0",
|
||||
"react-dom": "^16.7.0",
|
||||
"react-router": "^4.3.1",
|
||||
"react-router-dom": "^4.3.1",
|
||||
"typescript": "^3.2.2",
|
||||
"np": "^3.1.0"
|
||||
"react-testing-library": "^5.5.3",
|
||||
"ts-jest": "^23.10.5",
|
||||
"typescript": "^3.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ionic/core": "4.0.1"
|
||||
"@ionic/core": "^4.0.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.7.0",
|
||||
"react-dom": "^16.7.0",
|
||||
"react-router": "^4.3.1",
|
||||
"react-router-dom": "^4.3.1"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "ts-jest",
|
||||
"setupTestFrameworkScriptFile": "<rootDir>/jest.setup.js",
|
||||
"testPathIgnorePatterns": [
|
||||
"node_modules",
|
||||
"dist"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user