Skip to content

Commit

Permalink
Merge pull request #2 from GerritRiesch94/add-jest
Browse files Browse the repository at this point in the history
Add jest
  • Loading branch information
GerritRiesch94 authored Dec 16, 2021
2 parents d7d2759 + f136410 commit f4af481
Show file tree
Hide file tree
Showing 6 changed files with 9,655 additions and 635 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
# custom-angular-schematics
Repository for custom angular schematics

# Test setup

Using `jest` as test framework and `babel` as coverage reporter.

For detailed information look [here](https://jestjs.io/docs/getting-started).
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', {targets: {node: 'current'}}],
'@babel/preset-typescript',
],
};
20 changes: 20 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/

module.exports = {
// The glob patterns Jest uses to detect test files
testMatch: [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[tj]s?(x)",
"**/?(*_)+(spec|test).ts?(x)"
],

// Indicates whether the coverage information should be collected while executing the test
collectCoverage: true,

// The directory where Jest should output its coverage files
coverageDirectory: "coverage",

};
Loading

0 comments on commit f4af481

Please sign in to comment.