Skip to content

Commit

Permalink
[site:test] Fix browser tests again
Browse files Browse the repository at this point in the history
expect.js doesn't play nicely with Babel, so it
shouldn't be transformed by Babelify.^1 Note that
the ignore option in Babelify is buggy ^2, so
this might not work on your end.

^1 Automattic/expect.js#149
^2 babel/babelify#265
  • Loading branch information
larsgw committed Apr 29, 2018
1 parent 32190e0 commit 7c475b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/build-test.js
Expand Up @@ -6,6 +6,9 @@ var babelify = require('babelify')
browserify()
.exclude(['citation-js'])
.add('./test/wrapper.js')
.transform(babelify, {global: true})
.transform(babelify, {
global: true,
ignore: ['node_modules/expect.js/']
})
.bundle()
.pipe(fs.createWriteStream(path.join(__dirname, '../build/test.citation.js')))

0 comments on commit 7c475b6

Please sign in to comment.