Skip to content

Commit

Permalink
Add basic unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie committed Apr 9, 2024
1 parent b9c33f7 commit e81c6c8
Show file tree
Hide file tree
Showing 5 changed files with 2,397 additions and 64 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
# If configure-git didn't work, commit will fail:
git commit -a -m "Test commit"
- name: Unit tests
run: npm run test


test-stage-1:
runs-on: ubuntu-latest
Expand Down
12 changes: 9 additions & 3 deletions eslint.config.cjs → eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
const globals = require("globals")
const js = require("@eslint/js")
import globals from "globals"
import js from "@eslint/js"

/** @type {import('eslint').Linter.FlatConfig[]} */
module.exports = [
export default [
js.configs.recommended,
{
languageOptions: {
sourceType: "commonjs",
globals: globals.node,
},
},
{
files: ["**/*.mjs"],
languageOptions: {
sourceType: "module",
},
}
]
Loading

0 comments on commit e81c6c8

Please sign in to comment.