Skip to content

Commit

Permalink
Add vacuous test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcreedcmu committed Mar 20, 2024
1 parent 4e8cd7b commit 3e495a5
Show file tree
Hide file tree
Showing 6 changed files with 6,721 additions and 306 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Twelf-Wasm Unit Tests

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 16.x

- name: Run tests
run: npm install && npx jest
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
transform: {
'^.+\\.ts?$':
['ts-jest',
{
isolatedModules: true,
}
]
},
testEnvironment: 'node',
globals: {
devicePixelRatio: 1,
},
testRegex: '/tests/test-.*\\.(ts|tsx)$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
};
Loading

0 comments on commit 3e495a5

Please sign in to comment.