Skip to content

Commit

Permalink
Only run Fiber tests with scripts/fiber/record-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Jul 19, 2017
1 parent 73bbcf1 commit 1ad647f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/fiber/record-tests
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ const TestWatcher = require('jest').TestWatcher;
const createContext = require('jest-runtime').createContext;
const readConfig = require('jest-config').readConfig;

const argv = {};
const root = path.normalize(path.join(__dirname, '..', '..'));
const argv = {
config: path.join(root, 'scripts/jest/fiber.config.json'),
};
const testPathPattern = '';

function wrapRunnerFile(runnerPath) {
Expand Down Expand Up @@ -79,7 +81,7 @@ function wrapRunner(originalPath) {
}

function runJest(maxWorkers) {
let { config } = readConfig(argv, root)
let { config } = readConfig(argv, root);
config = Object.assign({}, config, {
testRunner: wrapRunnerFile(config.testRunner),
maxWorkers: maxWorkers,
Expand Down

0 comments on commit 1ad647f

Please sign in to comment.