Skip to content

Commit

Permalink
chore(cli): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
smelukov committed Jan 29, 2020
1 parent a0e8036 commit c7fd491
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/node/node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ const { run, extractSummary } = require('../utils/test-utils');

describe('node flags', () => {
it('is able to options flags to node js', done => {
const { stdout, stderr } = run(__dirname, ['--node-args', `--require=${resolve(__dirname, 'bootstrap.js')}`, '--node-args', `-r ${resolve(__dirname, 'bootstrap2.js')}`, '--output', './bin/[name].bundle.js'], false);
expect(stderr).toBe('');
const { stdout } = run(__dirname, ['--node-args', `--require=${resolve(__dirname, 'bootstrap.js')}`, '--node-args', `-r ${resolve(__dirname, 'bootstrap2.js')}`, '--output', './bin/[name].bundle.js'], false);
expect(stdout).toContain('---from bootstrap.js---');
expect(stdout).toContain('---from bootstrap2.js---');
const summary = extractSummary(stdout);
Expand Down

0 comments on commit c7fd491

Please sign in to comment.