Skip to content

Commit

Permalink
feat: added message formatters (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeroen Claassens <[email protected]>
Co-authored-by: Noel <[email protected]>
  • Loading branch information
3 people authored Jun 30, 2021
1 parent 8fcdfe1 commit 765e46d
Show file tree
Hide file tree
Showing 10 changed files with 13,639 additions and 5,081 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,30 @@ jobs:
- name: Run ESLint
run: npm run test:lint

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Build TypeScript
run: npm run build

- name: Run Tests
run: npm run test:ci

- name: Upload Coverage
uses: codecov/codecov-action@v1

typescript:
name: TypeScript
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ typings/index.js

# Autogenerated
CHANGELOG.md
coverage/
dist/
14 changes: 14 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
parserOpts: { strictMode: true },
sourceMaps: 'inline',
presets: [
[
'@babel/preset-env',
{
targets: { node: 'current' },
modules: 'commonjs',
},
],
'@babel/preset-typescript',
],
};
10 changes: 10 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage:
status:
project:
default:
target: 70%
threshold: 5%
patch:
default:
target: 70%
threshold: 5%
15 changes: 15 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
testMatch: ['<rootDir>/tests/**/*.test.ts'],
testEnvironment: 'node',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts'],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'clover'],
coverageThreshold: {
global: {
branches: 70,
lines: 70,
statements: 70,
},
},
};
Loading

0 comments on commit 765e46d

Please sign in to comment.