Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pagepro/dojo-starter
A starter for JavaScript Coding Dojo sessions by Pagepro.
https://github.com/pagepro/dojo-starter
boilerplate coding-dojo javascript tdd
Last synced: 13 days ago
JSON representation
A starter for JavaScript Coding Dojo sessions by Pagepro.
- Host: GitHub
- URL: https://github.com/pagepro/dojo-starter
- Owner: Pagepro
- Created: 2018-08-09T11:06:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-11T14:05:55.000Z (over 6 years ago)
- Last Synced: 2024-12-01T03:13:09.853Z (2 months ago)
- Topics: boilerplate, coding-dojo, javascript, tdd
- Language: JavaScript
- Homepage:
- Size: 123 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# JavaScript Coding Dojo Starter
> A starter for JavaScript Coding Dojo sessions by Pagepro.
## Globally injected variables
* describe(name, fn)
* it(name, fn)
* expect(val)## expect(value)
* .not inverse the next comparison
* .toThrow(?message)
* .toBe(value) comparison using ===
* .toEqual(value) deep comparison (objects, arrays)
* .toBeFalsy()
* .toBeTruthy()
* .toBeNull()
* .toBeUndefined()
* .toBeDefined()
* .toMatch(regexp)
* .toContain(string)
* .toBeCloseTo(number, delta)
* .toBeGreaterThan(number)
* .toBeLessThan(number)
* .toBeCalled()
* .toBeCalledWith(arg, um, ents)
* .lastCalledWith(arg, um, ents)## Using JS Modules
```javascript
import { name } from 'path'
``````javascript
import defaultName from 'path'
``````javascript
export { name: name }
``````javascript
export const name = fn/variable/value
``````javascript
export default name
```## Scripts
```shell
npm run test
``````shell
npm run test:watch
``````shell
npm run lint
```