Skip to content

Commit

Permalink
test: run tests using legacy jasmine + manually filter the test paths
Browse files Browse the repository at this point in the history
PR and its issue were rejected: 
UziTech/atom-jasmine3-test-runner#167
  • Loading branch information
aminya committed Oct 17, 2020
1 parent e4a6806 commit 80fcfdb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nuclide/atom-test-runners/jasmine-runner.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
const { createRunner } = require("atom-jasmine3-test-runner")

const fs = require("fs")

// https://github.com/UziTech/atom-jasmine3-test-runner#api
module.exports = createRunner({
testPackages: process.env.APM_TEST_PACKAGES ? process.env.APM_TEST_PACKAGES.split(' ') : [],
suffix: "-test",
legacySuffix: "-test-v1",
testPaths: ["__tests__", "__atom_tests__"],
suffix: "-test-v3",
legacySuffix: "-test",
testPaths: ["__tests__", "__atom_tests__"].filter(dir => !fs.existsSync(process.cwd(), dir)),
timeReporter: true,
silentInstallation: true,
// Extra Packages
Expand Down

0 comments on commit 80fcfdb

Please sign in to comment.