Commit c644eeae authored by Fred Chasen's avatar Fred Chasen

Seperate tests and specs

parent 82ffbf9d
......@@ -15,6 +15,7 @@
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-jest": "^22.4.3",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"chalk": "^2.4.1",
......@@ -35,7 +36,7 @@
"scripts": {
"build": "./node_modules/.bin/rollup -c",
"start": "./node_modules/.bin/rollup -w -c rollup.server.config.js",
"test": "jest --config=test/jest.config.js",
"test": "jest --config=tests/jest.config.js",
"specs": "jest --config=specs/jest.config.js",
"compile": "./node_modules/.bin/babel src/ -d lib/",
"pretest": "npm run build",
......
const TIMEOUT = 10000; // Some book might take longer than this to renderer
describe('break', async () => {
describe('default', async () => {
let page;
let rendered;
beforeAll(async () => {
......
module.exports = {
testMatch: ['**/?(*.)(spec|test).js?(x)'],
testMatch: ['**/?(*.)(spec).js?(x)'],
globalSetup: './jest_helpers/setup.js',
globalTeardown: './jest_helpers/teardown.js',
testEnvironment: './jest_helpers/puppeteer_environment.js',
......
import { Chunker } from '../../src/index.js';
describe('Chunker', async () => {
it('should create a page area', async () => {
let chunker = new Chunker();
expect(chunker.pagesArea.classList).toContain('pages');
})
})
module.exports = {
testMatch: ['tests/**/?(*.)(spec|test).js?(x)'],
testMatch: ['**/?(*.)(test).js?(x)'],
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment