Skip to content

Commit 4e87f8d

Browse files
committed
add jest, run it with ESModules, add example test, include in github workflow
1 parent 5c4f0b6 commit 4e87f8d

File tree

4 files changed

+3031
-2
lines changed

4 files changed

+3031
-2
lines changed

.github/workflows/check_js.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ jobs:
1717
- run: cd lib/IHP/DataSync && npm install
1818
name: 'Install NPM Packages'
1919
- run: cd lib/IHP/DataSync && npm run typecheck
20-
name: 'Typechecking DataSync modules'
20+
name: 'Typechecking DataSync modules'
21+
- run: cd lib/IHP/DataSync && npm run test
22+
name: 'Testing DataSync modules'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { query } from './ihp-querybuilder';
2+
3+
test('1+1=2', () => {
4+
expect(1 + 1).toBe(2)
5+
})

0 commit comments

Comments
 (0)