Skip to content

Commit 3bbc79c

Browse files
authored
Merge pull request #366 from danstarns/test/init
test: init testing
2 parents 7fe709e + 93f92e9 commit 3bbc79c

File tree

10 files changed

+15789
-3490
lines changed

10 files changed

+15789
-3490
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
name: build
1+
name: Quality
22
on:
33
push:
44
branches:
55
- master
66
pull_request:
7+
branches:
8+
- master
79
jobs:
8-
build:
10+
quality:
911
runs-on: ubuntu-latest
1012
steps:
1113
- uses: actions/checkout@v2
@@ -15,4 +17,5 @@ jobs:
1517
registry-url: 'https://registry.npmjs.org'
1618
- run: npm ci
1719
- run: npm run lint
20+
- run: npm run test
1821
- run: npm run build

babel.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
env: {
3+
test: {
4+
presets: ["@babel/preset-env", "@babel/preset-typescript"],
5+
},
6+
},
7+
};

jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
moduleFileExtensions: ["js", "ts"],
3+
verbose: true,
4+
modulePaths: ["<rootDir>/src"],
5+
testMatch: ["<rootDir>/tests/specs/**/*.(t|j)s"],
6+
setupFiles: ["<rootDir>/tests/setup.js"],
7+
};

0 commit comments

Comments
 (0)