📚 Update development cycle documentation and add placeholder tests

This commit is contained in:
Jan Oberhauser
2019-08-14 13:45:18 +02:00
parent 9630615fc7
commit 97893fed1b
10 changed files with 82 additions and 26 deletions

View File

@@ -16,6 +16,7 @@
"scripts": {
"dev": "npm run watch",
"build": "tsc",
"test": "jest",
"tslint": "tslint -p tsconfig.json -c tslint.json",
"watch": "tsc --watch"
},
@@ -45,5 +46,23 @@
"replace-in-file": "^4.1.0",
"typescript": "~3.5.2",
"vorpal": "^1.12.0"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testURL": "http://localhost/",
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"testPathIgnorePatterns": [
"/dist/",
"/node_modules/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"json",
"node"
]
}
}

View File

@@ -0,0 +1,7 @@
describe('Placeholder', () => {
test('example', () => {
expect(1 + 1).toEqual(2);
});
});

View File

@@ -4,7 +4,8 @@
"es2017"
],
"types": [
"node"
"node",
"jest"
],
"module": "commonjs",
"esModuleInterop": true,
@@ -26,6 +27,7 @@
],
"exclude": [
"dist",
"node_modules/**/*",
"**/*.spec.ts"
]
}