Skip to content

Commit a6600f0

Browse files
committed
Do not babelify in node integration tests
1 parent ed41eb5 commit a6600f0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"test": "npm run lint && npm run unit && npm run integration",
2424
"unit": "npx mocha './src/*-unit.js' --reporter spec --require babel-register --require babel-polyfill testutils.js",
2525
"integration": "npm run integration-ws && npm run integration-node",
26-
"integration-node": "NODE_TLS_REJECT_UNAUTHORIZED=0 npx mocha './test/node/node-integration.js' --reporter spec --require babel-register --require babel-polyfill testutils.js",
26+
"integration-node": "NODE_TLS_REJECT_UNAUTHORIZED=0 npx mocha './test/node/node-integration.js' --require testutils.js",
2727
"integration-ws": "npm run build && npx webpack --config webpack.config.test.js -p && npx wdio wdio.conf.js",
2828
"integration-chrome": "npm run build && cp node_modules/chai/chai.js node_modules/mocha/mocha.js node_modules/mocha/mocha.css test/chrome/ && npx webpack --config webpack.config.chrome.js && npx babel-node test/chrome/run.js"
2929
},

test/node/node-integration.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import echo from '../echo'
2-
import TCPSocket from '../../'
3-
import { PORT_NET, PORT_STARTTLS, PORT_TLS } from '../constants'
1+
const echo = require('../echo')
2+
const TCPSocket = require('../../').default
3+
const { PORT_NET, PORT_STARTTLS, PORT_TLS } = require('../constants')
44

55
const { startServers, stopServers } = echo()
66

testutils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { expect } from 'chai'
2-
import sinon from 'sinon'
1+
const { expect } = require('chai')
2+
const sinon = require('sinon')
33

44
global.expect = expect
55
global.sinon = sinon

0 commit comments

Comments
 (0)