mirror of
https://github.com/tauri-apps/tauri-forage.git
synced 2026-02-04 02:31:20 +01:00
Adapted for TS
This commit is contained in:
@@ -13,7 +13,7 @@ module.exports = {
|
||||
collectCoverage: true,
|
||||
coverageDirectory: '<rootDir>/test/jest/coverage',
|
||||
collectCoverageFrom: [
|
||||
'<rootDir>/src/**/*.js'
|
||||
'<rootDir>/src/**/*.ts'
|
||||
],
|
||||
coverageReporters: [
|
||||
'json-summary',
|
||||
@@ -28,9 +28,10 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
testMatch: [
|
||||
'<rootDir>/test/__tests__/**/*.spec.js'
|
||||
'<rootDir>/test/__tests__/**/*.spec.ts'
|
||||
],
|
||||
moduleFileExtensions: [
|
||||
'ts',
|
||||
'js',
|
||||
'json'
|
||||
],
|
||||
@@ -39,7 +40,7 @@ module.exports = {
|
||||
'^src/(.*)$': '<rootDir>/src/$1',
|
||||
},
|
||||
transform: {
|
||||
'.*\\.js$': 'babel-jest',
|
||||
'.*\\.ts$': 'ts-jest',
|
||||
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
|
||||
@@ -37,6 +37,8 @@
|
||||
"@babel/cli": "^7.6.4",
|
||||
"@babel/core": "^7.6.4",
|
||||
"@babel/preset-env": "^7.6.3",
|
||||
"@types/jest": "^24.9.0",
|
||||
"@types/ramda": "^0.26.39",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"babel-jest": "^24.9.0",
|
||||
"babel-plugin-transform-relative-paths": "^0.1.0",
|
||||
@@ -53,6 +55,7 @@
|
||||
"lint-staged": "^9.4.2",
|
||||
"postinstall-postinstall": "^2.0.0",
|
||||
"promise": "^8.0.2",
|
||||
"ts-jest": "^24.3.0",
|
||||
"ts-loader": "^6.2.1",
|
||||
"typescript": "^3.7.5",
|
||||
"webpack": "^4.41.5",
|
||||
|
||||
Reference in New Issue
Block a user