Skip to content

Commit

Permalink
add jest, run it with ESModules, add example test, include in github …
Browse files Browse the repository at this point in the history
…workflow
  • Loading branch information
jeyj0 committed Feb 8, 2022
1 parent 5c4f0b6 commit 4e87f8d
Show file tree
Hide file tree
Showing 4 changed files with 3,031 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/check_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ jobs:
- run: cd lib/IHP/DataSync && npm install
name: 'Install NPM Packages'
- run: cd lib/IHP/DataSync && npm run typecheck
name: 'Typechecking DataSync modules'
name: 'Typechecking DataSync modules'
- run: cd lib/IHP/DataSync && npm run test
name: 'Testing DataSync modules'
5 changes: 5 additions & 0 deletions lib/IHP/DataSync/ihp-querybuilder.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { query } from './ihp-querybuilder';

test('1+1=2', () => {
expect(1 + 1).toBe(2)
})
Loading

0 comments on commit 4e87f8d

Please sign in to comment.