mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Run tests in Travis. (#1247)
* Run tests in Travis. * Update deps and config. * Update jest config. * Disable a test temp. * Increase the timeout.
This commit is contained in:
parent
468b75b8b0
commit
fb496b7c9a
|
@ -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 @@
|
||||||
"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 @@
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"testEnvironment": "node",
|
"testEnvironment": "node",
|
||||||
"testPathDirs": [
|
"roots": [
|
||||||
"test/"
|
"test/"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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({
|
||||||
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 () => {
|
||||||
|
|
Loading…
Reference in a new issue