From c006807da55ce6f5fe5404097c60c9dfb1daadeb Mon Sep 17 00:00:00 2001 From: Justin Dalrymple Date: Tue, 10 Apr 2018 18:26:36 -0400 Subject: [PATCH] Testing --- .jestrc.yaml | 5 +++++ package-lock.json | 22 ++++++++++++++++++++++ package.json | 3 ++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .jestrc.yaml diff --git a/.jestrc.yaml b/.jestrc.yaml new file mode 100644 index 00000000..a334eacd --- /dev/null +++ b/.jestrc.yaml @@ -0,0 +1,5 @@ +coverageDirectory: "./coverage/" +collectCoverage: true +testRegex: "(/__tests__/.*|/tests/.*(\\.|/)(test|spec))\\.jsx?$" +reporters: + - "jest-tap-reporter" \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e5b4d0e6..78ffa22a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10925,6 +10925,28 @@ "strip-ansi": "^4.0.0" } }, + "string.prototype.padend": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.0.0.tgz", + "integrity": "sha1-86rvfBcZ8XDF6rHDK/eA2W4h8vA=", + "dev": true, + "requires": { + "define-properties": "1.1.2", + "es-abstract": "1.7.0", + "function-bind": "1.1.0" + } + }, + "string.prototype.padstart": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.padstart/-/string.prototype.padstart-3.0.0.tgz", + "integrity": "sha1-W8+tOfRkm7LQMSkuGbzwtRDUskI=", + "dev": true, + "requires": { + "define-properties": "1.1.2", + "es-abstract": "1.7.0", + "function-bind": "1.1.0" + } + }, "string.prototype.trim": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz", diff --git a/package.json b/package.json index de7af60a..3859ee17 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "build:es5": "babel src -d dist/es5 --config-file=./.babelrc-es5", "build": "npm run build:clean && npm run build:es6 && npm run build:es5", "lint": "node_modules/eslint/bin/eslint.js ./src ./tests", - "test:infrastructure": "node_modules/tape/bin/tape tests/infrastructure/**/*.js | tap-spec", + "test:infrastructure": "jest tests/services/**/*.js", "test:services": "node_modules/tape/bin/tape tests/services/**/*.js | tap-spec", "test:watch": "GITLAB_URL=http://localhost:8080 API_TOKEN=ysccjxQtMCqz_wBfJEy2 jest --watch", "prepublishOnly": "npm run build" @@ -46,6 +46,7 @@ "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.7.0", "istanbul": "^0.4.5", + "jest-tap-reporter": "^1.9.0", "nyc": "^11.2.1", "onchange": "^3.3.0", "tap-spec": "^4.1.1"