Skip to content

Commit

Permalink
Fix eslint errors in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1995 committed Aug 8, 2023
1 parent 9c38d23 commit a4f4995
Show file tree
Hide file tree
Showing 6 changed files with 331 additions and 127 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
root: true,
extends: ["@toruslabs/eslint-config-typescript"],
extends: ["@toruslabs/eslint-config-node"],
parser: "@typescript-eslint/parser",
ignorePatterns: ["*.config.js", ".eslintrc.js"],
parserOptions: {
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Run tests

on: push

name: Run Tests

jobs:
test:
name: run tests
strategy:
matrix:
node: ["20.x"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install dependencies
run: npm install

- name: Run build
run: npm run build

- name: Run tests
run: npm run test
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true
},
}
117 changes: 115 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@
"@babel/preset-env": "^7.22.10",
"@babel/runtime": "^7.22.10",
"@toruslabs/config": "^2.0.1",
"@toruslabs/eslint-config-typescript": "^3.0.0",
"@toruslabs/eslint-config-node": "^3.0.0",
"@toruslabs/torus-scripts": "^5.0.1",
"@types/buffer-equal": "^1.0.0",
"@types/chai": "^4.3.5",
"@types/elliptic": "^6.4.14",
"browserify": "^17.0.0",
"buffer-equal": "^1.0.1",
"chai": "^4.3.7",
"eslint": "^8.46.0",
"eslint-plugin-chai-expect": "^3.0.0",
"karma": "^6.4.2",
"karma-browserify": "^8.1.0",
"karma-chrome-launcher": "^3.2.0",
Expand Down
Loading

0 comments on commit a4f4995

Please sign in to comment.