Commit f742e178 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

ts: installe est configure jest.

parent c7264c50
......@@ -10,5 +10,7 @@ module.exports = {
// Doit rester en dernier :
'plugin:prettier/recommended',
],
rules: {},
rules: {
'@typescript-eslint/no-explicit-any': 0,
},
};
module.exports = {
preset: 'ts-jest',
};
......@@ -6,7 +6,7 @@
"directories": {},
"scripts": {
"lint": "eslint --fix '{src,tests}/**/*.{js,ts}' --quiet --fix",
"test": "echo \"Error: no test specified\" && exit 1",
"test": "jest",
"test:compile-generated": "tsc --project tsconfig.ci.json --pretty --noEmit",
"test:lint": "eslint '{src,tests}/**/*.{js,ts}'"
},
......@@ -32,13 +32,16 @@
"devDependencies": {
"@angular/common": "^7",
"@angular/core": "^7",
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"rxjs-marbles": "^5.0.3",
"ts-jest": "^26.5.1",
"typescript": "^3.7.2",
"zone.js": "~0.8.26"
}
......
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/node10/tsconfig.json",
"compileOnSave": false,
"compilerOptions": {
"noEmit": true,
"rootDir": "src/ts"
},
"include": ["src/ts/**/*.ts"],
"exclude": ["node_modules"]
}
{
"extends": "./node_modules/irstea-typescript-config/tsconfig.json",
"compileOnSave": false,
"compilerOptions": {
"outDir": "out-tsc/test",
"target": "es2015",
"declaration": true,
"sourceMap": true,
"inlineSources": false,
"experimentalDecorators": true,
"typeRoots": ["node_modules/@types"],
"moduleResolution": "node",
"lib": ["dom","es2018"]
},
"include": ["output/**/*.ts"]
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./tsconfig.base.json",
"include": ["src/ts/**/*.ts", "output/**/*.ts"],
"exclude": ["node_modules", "**/*.spec.ts"]
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noEmit": false,
"outDir": "./dist",
"sourceMap": true,
"declaration": true,
"removeComments": true
},
"exclude": ["node_modules", "**/*.spec.ts"]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment