Skip to content

Commit f505900

Browse files
committed
Add vacuous test
1 parent 4e8cd7b commit f505900

File tree

6 files changed

+6721
-306
lines changed

6 files changed

+6721
-306
lines changed

.github/workflows/run-tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Twelf-Wasm Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 16.x
21+
22+
- name: Run tests
23+
run: npm install && npx jest

jest.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
transform: {
3+
'^.+\\.ts?$':
4+
['ts-jest',
5+
{
6+
isolatedModules: true,
7+
}
8+
]
9+
},
10+
testEnvironment: 'node',
11+
globals: {
12+
devicePixelRatio: 1,
13+
},
14+
testRegex: '/tests/test-.*\\.(ts|tsx)$',
15+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
16+
};

0 commit comments

Comments
 (0)