From 07314ca9987edca0ba369a22b925f99634bc7d8c Mon Sep 17 00:00:00 2001 From: aminya Date: Sun, 19 Jul 2020 13:18:49 -0500 Subject: [PATCH] tru jasmine 3 runner --- package-lock.json | 52 ++++++++++++++++++++++++++++++++++++++- package.json | 4 +++ vendor/jasmine3-runner.js | 22 +++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 vendor/jasmine3-runner.js diff --git a/package-lock.json b/package-lock.json index cd441a6a253c..7e70e444285a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "atom", - "version": "1.50.0-dev", + "version": "1.51.0-dev", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1464,6 +1464,40 @@ "escape-string-regexp": "^1.0.5" } }, + "atom-jasmine3-test-runner": { + "version": "4.4.8", + "resolved": "https://registry.npmjs.org/atom-jasmine3-test-runner/-/atom-jasmine3-test-runner-4.4.8.tgz", + "integrity": "sha512-18FWj692Bf7SwzPbBLTW/7VHbtveZuRLJc/2p6npPrj9FeTqtGKTeCNU6zxUTSRfP1OF1HZ46LDF0GZBL9YxzQ==", + "dev": true, + "requires": { + "etch": "^0.14.0", + "find-parent-dir": "^0.3.0", + "fs-plus": "3.1.1", + "glob": "^7.1.6", + "grim": "^2.0.2", + "jasmine": "~3.5.0", + "semver": "^7.3.2", + "temp": "^0.9.1", + "underscore-plus": "^1.7.0" + }, + "dependencies": { + "etch": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/etch/-/etch-0.14.0.tgz", + "integrity": "sha512-puqbFxz7lSm+YK6Q+bvRkNndRv6PRvGscSEhcFjmtL4nX/Az5rRCNPvK3aVTde85c/L5X0vI5kqfnpYddRalJQ==", + "dev": true + }, + "grim": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/grim/-/grim-2.0.2.tgz", + "integrity": "sha512-Qj7hTJRfd87E/gUgfvM0YIH/g2UA2SV6niv6BYXk1o6w4mhgv+QyYM1EjOJQljvzgEj4SqSsRWldXIeKHz3e3Q==", + "dev": true, + "requires": { + "event-kit": "^2.0.0" + } + } + } + }, "atom-keymap": { "version": "8.2.14", "resolved": "https://registry.npmjs.org/atom-keymap/-/atom-keymap-8.2.14.tgz", @@ -4062,6 +4096,22 @@ } } }, + "jasmine": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-3.5.0.tgz", + "integrity": "sha512-DYypSryORqzsGoMazemIHUfMkXM7I7easFaxAvNM3Mr6Xz3Fy36TupTrAOxZWN8MVKEU5xECv22J4tUQf3uBzQ==", + "dev": true, + "requires": { + "glob": "^7.1.4", + "jasmine-core": "~3.5.0" + } + }, + "jasmine-core": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-3.5.0.tgz", + "integrity": "sha512-nCeAiw37MIMA9w9IXso7bRaLl+c/ef3wnxsoSAlYrzS+Ot0zTG6nU8G/cIfGkqpkjX2wNaIW9RFG0TwIFnG6bA==", + "dev": true + }, "jasmine-focused": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/jasmine-focused/-/jasmine-focused-1.0.7.tgz", diff --git a/package.json b/package.json index 334e7d6725af..b95f870aaa90 100644 --- a/package.json +++ b/package.json @@ -266,6 +266,10 @@ "language-xml": "0.35.3", "language-yaml": "0.32.0" }, + "devDependencies": { + "atom-jasmine3-test-runner": "latest" + }, + "atomTestRunner": "./vendor/jasmine3-runner", "private": true, "scripts": { "preinstall": "node -e 'process.exit(0)'", diff --git a/vendor/jasmine3-runner.js b/vendor/jasmine3-runner.js new file mode 100644 index 000000000000..688e03916883 --- /dev/null +++ b/vendor/jasmine3-runner.js @@ -0,0 +1,22 @@ +const { createRunner } = require("atom-jasmine3-test-runner"); + +// https://github.com/UziTech/atom-jasmine3-test-runner#api +module.exports = createRunner({ + suffix: "-spec-v3", + legacySuffix: "-spec", + testPackages: [], + timeReporter: true, + specHelper: true, + attachToDOM: true, + // Extra Packages + customMatchers: true, + jasmineFocused: true, + jasmineJson: true, + jasminePass: true, + jasmineShouldFail: true, + jasmineTagged: true, + mockClock: true, + mockLocalStorage: true, + profile: true, + unspy: true, +});