Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb496b7

Browse files
authored
Run tests in Travis. (vercel#1247)
* Run tests in Travis. * Update deps and config. * Update jest config. * Disable a test temp. * Increase the timeout.
1 parent 468b75b commit fb496b7

File tree

5 files changed

+315
-319
lines changed

5 files changed

+315
-319
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,4 @@ before_install:
1818
- export DISPLAY=:99.0
1919
- sh -e /etc/init.d/xvfb start
2020
- sleep 3
21-
script:
22-
- echo "No need to use npm test since it's done in the install section via 'npm prepublish'"
2321
after_script: npm run coveralls

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"http-status": "1.0.1",
6868
"is-windows-bash": "1.0.3",
6969
"json-loader": "0.5.4",
70-
"loader-utils": "1.0.1",
70+
"loader-utils": "1.0.2",
7171
"minimist": "1.2.0",
7272
"mkdirp-then": "1.2.0",
7373
"mv": "2.1.1",
@@ -119,7 +119,7 @@
119119
},
120120
"jest": {
121121
"testEnvironment": "node",
122-
"testPathDirs": [
122+
"roots": [
123123
"test/"
124124
]
125125
}

server/build/loaders/emit-file-loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import loaderUtils from 'loader-utils'
33
module.exports = function (content, sourceMap) {
44
this.cacheable()
55

6-
const query = loaderUtils.parseQuery(this.query)
6+
const query = loaderUtils.getOptions(this)
77
const name = query.name || '[hash].[ext]'
88
const context = query.context || this.options.context
99
const regExp = query.regExp

test/integration/basic/test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ context.app = nextServer({
2222
quiet: true
2323
})
2424

25-
jasmine.DEFAULT_TIMEOUT_INTERVAL = 40000
25+
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 2
2626

2727
describe('Basic Features', () => {
2828
beforeAll(async () => {

0 commit comments

Comments
 (0)