From bba4333749ec120bfd66046fefe2a7b9c437c540 Mon Sep 17 00:00:00 2001 From: Milan Hauth Date: Wed, 9 Sep 2020 19:06:02 +0200 Subject: [PATCH] delete comments, move files --- package.json | 6 +++--- mocharc.coverage.js => test/mocharc.coverage.js | 1 - mocharc.js => test/mocharc.js | 7 +++---- 3 files changed, 6 insertions(+), 8 deletions(-) rename mocharc.coverage.js => test/mocharc.coverage.js (82%) rename mocharc.js => test/mocharc.js (73%) diff --git a/package.json b/package.json index c2c2b5a4da..ee51c99d06 100644 --- a/package.json +++ b/package.json @@ -23,10 +23,10 @@ }, "types": "types/runtime/index.d.ts", "scripts": { - "test": "mocha --config mocharc.js", + "test": "mocha --config test/mocharc.js", "test:unit": "mocha --require sucrase/register --recursive src/**/__test__.ts", - "quicktest": "mocha --config mocharc.js", - "precoverage": "c8 mocha --config mocharc.coverage.js", + "quicktest": "mocha --config test/mocharc.js", + "precoverage": "c8 mocha --config test/mocharc.coverage.js", "coverage": "c8 report --reporter=text-lcov > coverage.lcov && c8 report --reporter=html", "codecov": "codecov", "precodecov": "npm run coverage", diff --git a/mocharc.coverage.js b/test/mocharc.coverage.js similarity index 82% rename from mocharc.coverage.js rename to test/mocharc.coverage.js index 4198f15f55..021c348f3c 100644 --- a/mocharc.coverage.js +++ b/test/mocharc.coverage.js @@ -2,7 +2,6 @@ module.exports = Object.assign( {}, require('./mocharc.js'), { - //recursive: true, // fails fullTrace: true, require: [ 'source-map-support/register', diff --git a/mocharc.js b/test/mocharc.js similarity index 73% rename from mocharc.js rename to test/mocharc.js index 0c6b2e5ae2..8b97fea230 100644 --- a/mocharc.js +++ b/test/mocharc.js @@ -1,3 +1,5 @@ +// paths are relative to project root + module.exports = { diff: true, extension: ['js'], @@ -9,10 +11,7 @@ module.exports = { // files to import before tests file: [ 'test/test.js', - //'test/setup.js', - //'test/helpers.js', - //'internal/index.js', ], - // test files + // not used. test files are called from test/test.js //'watch-files': ['test/*/index.js'], };