Commit fb496b7c authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by GitHub

Run tests in Travis. (#1247)

* Run tests in Travis.

* Update deps and config.

* Update jest config.

* Disable a test temp.

* Increase the timeout.
parent 468b75b8
...@@ -18,6 +18,4 @@ before_install: ...@@ -18,6 +18,4 @@ before_install:
- export DISPLAY=:99.0 - export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start - sh -e /etc/init.d/xvfb start
- sleep 3 - sleep 3
script:
- echo "No need to use npm test since it's done in the install section via 'npm prepublish'"
after_script: npm run coveralls after_script: npm run coveralls
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
"http-status": "1.0.1", "http-status": "1.0.1",
"is-windows-bash": "1.0.3", "is-windows-bash": "1.0.3",
"json-loader": "0.5.4", "json-loader": "0.5.4",
"loader-utils": "1.0.1", "loader-utils": "1.0.2",
"minimist": "1.2.0", "minimist": "1.2.0",
"mkdirp-then": "1.2.0", "mkdirp-then": "1.2.0",
"mv": "2.1.1", "mv": "2.1.1",
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
}, },
"jest": { "jest": {
"testEnvironment": "node", "testEnvironment": "node",
"testPathDirs": [ "roots": [
"test/" "test/"
] ]
} }
......
...@@ -3,7 +3,7 @@ import loaderUtils from 'loader-utils' ...@@ -3,7 +3,7 @@ import loaderUtils from 'loader-utils'
module.exports = function (content, sourceMap) { module.exports = function (content, sourceMap) {
this.cacheable() this.cacheable()
const query = loaderUtils.parseQuery(this.query) const query = loaderUtils.getOptions(this)
const name = query.name || '[hash].[ext]' const name = query.name || '[hash].[ext]'
const context = query.context || this.options.context const context = query.context || this.options.context
const regExp = query.regExp const regExp = query.regExp
......
...@@ -22,7 +22,7 @@ context.app = nextServer({ ...@@ -22,7 +22,7 @@ context.app = nextServer({
quiet: true quiet: true
}) })
jasmine.DEFAULT_TIMEOUT_INTERVAL = 40000 jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2
describe('Basic Features', () => { describe('Basic Features', () => {
beforeAll(async () => { beforeAll(async () => {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment