mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
Set up jest with babel. Add failing test to see if it passes CI
This commit is contained in:
parent
1808c00b01
commit
771371d081
8 changed files with 7736 additions and 3 deletions
15
spec/javascript/hello_jest.spec.js
Normal file
15
spec/javascript/hello_jest.spec.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import Jester from "jester"
|
||||
|
||||
describe('this test should pass', () => {
|
||||
test('very first test', () => {
|
||||
expect(true).toBe(true)
|
||||
})
|
||||
|
||||
test('Jester.hello returns greeting', () =>{
|
||||
const jester = new Jester()
|
||||
expect(jester.hello()).toBe("Hello")
|
||||
})
|
||||
test('fail', () => {
|
||||
expect(false).toBe(true)
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue