From 620ae7a33c690ac58b16fb489b457c4790355320 Mon Sep 17 00:00:00 2001 From: Kevin Grandon Date: Mon, 31 Oct 2016 11:14:37 -0700 Subject: [PATCH] Run jest tests alongside other example tests in CI. --- ghostjs-examples/package.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ghostjs-examples/package.json b/ghostjs-examples/package.json index 2acd4b2..bcb4926 100644 --- a/ghostjs-examples/package.json +++ b/ghostjs-examples/package.json @@ -4,24 +4,33 @@ "description": "Test examples for the ghostjs test runner.", "main": "index.js", "scripts": { - "test": "npm run test:phantom && npm run test:slimerjs", + "test": "npm run test:phantom && npm run test:slimerjs && npm run test:jest", + "test:jest": "jest", "test:phantom": "ghostjs test/*.js", "test:slimerjs": "ghostjs --ghost-runner slimerjs-firefox test/*.js" }, "author": "Kevin Grandon ", "license": "MPL-2.0", "dependencies": { + "babel-jest": "^16.0.0", "babel-preset-es2015": "^6.13.2", "babel-preset-stage-0": "^6.3.13", "ghostjs": "file:../ghostjs-core", "hapi": "^14.1.0", "inert": "^4.0.1", + "jest-cli": "^16.0.2", "slimerjs-firefox": "^1.0.5-no-download" }, "devDependencies": { "babel-eslint": "^6.1.2", "standard": "^7.0.1" }, + "jest": { + "testPathDirs": [ + "/test/" + ], + "testRegex": "\\.js" + }, "standard": { "parser": "babel-eslint", "globals": [