提交 fb496b7c 编写于 作者: A Arunoda Susiripala 提交者: GitHub

Run tests in Travis. (#1247)

* Run tests in Travis.

* Update deps and config.

* Update jest config.

* Disable a test temp.

* Increase the timeout.
上级 468b75b8
......@@ -18,6 +18,4 @@ before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- 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
......@@ -67,7 +67,7 @@
"http-status": "1.0.1",
"is-windows-bash": "1.0.3",
"json-loader": "0.5.4",
"loader-utils": "1.0.1",
"loader-utils": "1.0.2",
"minimist": "1.2.0",
"mkdirp-then": "1.2.0",
"mv": "2.1.1",
......@@ -119,7 +119,7 @@
},
"jest": {
"testEnvironment": "node",
"testPathDirs": [
"roots": [
"test/"
]
}
......
......@@ -3,7 +3,7 @@ import loaderUtils from 'loader-utils'
module.exports = function (content, sourceMap) {
this.cacheable()
const query = loaderUtils.parseQuery(this.query)
const query = loaderUtils.getOptions(this)
const name = query.name || '[hash].[ext]'
const context = query.context || this.options.context
const regExp = query.regExp
......
......@@ -22,7 +22,7 @@ context.app = nextServer({
quiet: true
})
jasmine.DEFAULT_TIMEOUT_INTERVAL = 40000
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2
describe('Basic Features', () => {
beforeAll(async () => {
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册