Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect and apply stripping flow types #1864

Merged
merged 9 commits into from
Aug 23, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improve test
  • Loading branch information
DeMoorJasper committed Aug 8, 2018
commit 9301f5ed5c6e81c822ecc7adaf7c4ad01d05ae7e
10 changes: 8 additions & 2 deletions test/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -1347,8 +1347,14 @@ describe('javascript', function() {
assert(output.includes('Other page'));
});

it('should strip away flow types of node modules', async function() {
await bundle(__dirname + '/integration/babel-strip-flow-types/index.js');
it.only('should strip away flow types of node modules', async function() {
let b = await bundle(
__dirname + '/integration/babel-strip-flow-types/index.js'
);

let output = await run(b);
assert.equal(typeof output, 'function');
assert.equal(output(), 'hello world');

let file = await fs.readFile(__dirname + '/dist/index.js', 'utf8');
assert(!file.includes('OptionsType'));
Expand Down