Skip to content

Commit

Permalink
Convert from jest to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Mar 11, 2022
1 parent 79e79e8 commit 4737d13
Show file tree
Hide file tree
Showing 20 changed files with 6,760 additions and 5,763 deletions.
8 changes: 6 additions & 2 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
tsconfigRootDir: __dirname,
project: './tsconfig.eslint.json',
// Because we are setting "type": "module" in our package.json, all `.js` files are treated as modules
// Sometimes we will want a commonjs file, like this eslint config, in which case we use the .cjs extension
extraFileExtensions: ['.cjs'],
},
plugins: ['@typescript-eslint'],
rules: {
Expand All @@ -17,4 +21,4 @@ module.exports = {
'no-global-assign': 0,
'no-undef': 0,
},
}
};
25 changes: 12 additions & 13 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,25 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [main]
pull_request:
branches: [ master ]
branches: [main]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x]
node-version: [14.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true
5 changes: 5 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
singleQuote: true,
printWidth: 120,
proseWrap: 'always',
};
813 changes: 419 additions & 394 deletions README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 4737d13

Please sign in to comment.