Skip to content

Commit

Permalink
Merge pull request #63 from useblacksmith/refactor-for-tests
Browse files Browse the repository at this point in the history
*: refactor methods to support mocking
  • Loading branch information
adityamaru authored Dec 8, 2024
2 parents 15e5bef + f9d1e15 commit 9f63c68
Show file tree
Hide file tree
Showing 15 changed files with 783 additions and 1,380 deletions.
23 changes: 4 additions & 19 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
{
"env": {
"node": true,
"es6": true,
"jest": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"jest",
"prettier"
"plugin:@typescript-eslint/recommended"
]
}
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- run: npm ci
- run: npm run build
- run: npm test
Loading

0 comments on commit 9f63c68

Please sign in to comment.