Skip to content

Commit f49490b

Browse files
committed
Move server test to a subfolder
1 parent b9dd48a commit f49490b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
if: matrix.os == 'ubuntu-latest'
5454

5555
- name: Run tests
56-
run: npm run test
56+
run: npm run mocha
5757
if: matrix.os == 'windows-latest'
5858

5959
- name: Run Coveralls

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"node": ">=12"
1717
},
1818
"scripts": {
19-
"mocha": "mocha -i --fgrep=server",
19+
"mocha": "mocha",
2020
"lint": "xo",
2121
"fix": "xo --fix",
2222
"test": "npm run lint && npm run mocha",
2323
"test:grunt": "grunt ci --force",
2424
"test:ci": "npm run mocha && npm run test:server && npm run test:grunt",
2525
"test:coverage": "c8 npm run test:ci",
26-
"test:server": "start-server-and-test start:server http://127.0.0.1:8080 \"mocha --fgrep=server\"",
26+
"test:server": "start-server-and-test start:server http://127.0.0.1:8080 \"npm run mocha -- test/server/\"",
2727
"start:server": "java -Dnu.validator.servlet.bind-address=127.0.0.1 -cp ./node_modules/vnu-jar/build/dist/vnu.jar nu.validator.servlet.Main 8080"
2828
},
2929
"dependencies": {
@@ -76,7 +76,7 @@
7676
},
7777
"overrides": [
7878
{
79-
"files": "test/*.js",
79+
"files": "test/**/*.js",
8080
"envs": [
8181
"mocha"
8282
]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const expectedResults = require('./helpers/expected_results.js');
4-
const run = require('./helpers/run.js');
3+
const expectedResults = require('../helpers/expected_results.js');
4+
const run = require('../helpers/run.js');
55

66
describe('htmllint', () => {
77
describe('server', () => {

0 commit comments

Comments
 (0)