From f1344755b950610f99ff229b5879f8f3dd3f01bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Vieira?= Date: Tue, 31 Dec 2019 13:38:27 +0000 Subject: [PATCH] Move config tests to src. --- package.json | 4 ++-- tests/{ => src}/config/typescript.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename tests/{ => src}/config/typescript.js (84%) diff --git a/package.json b/package.json index f315c48c7e..e196159744 100644 --- a/package.json +++ b/package.json @@ -17,11 +17,11 @@ "scripts": { "build": "babel --quiet --out-dir lib src", "prebuild": "rimraf lib", - "watch": "npm run mocha -- --watch tests/{src,config}", + "watch": "npm run mocha -- --watch tests/src", "pretest": "linklocal", "posttest": "eslint .", "mocha": "cross-env BABEL_ENV=test NODE_PATH=./src nyc -s mocha -R dot --recursive -t 5s", - "test": "npm run mocha tests/{src,config}", + "test": "npm run mocha tests/src", "test-compiled": "npm run prepublish && NODE_PATH=./lib mocha --compilers js:babel-register --recursive tests/src", "test-all": "npm test && for resolver in ./resolvers/*; do cd $resolver && npm test && cd ../..; done", "prepublish": "npm run build", diff --git a/tests/config/typescript.js b/tests/src/config/typescript.js similarity index 84% rename from tests/config/typescript.js rename to tests/src/config/typescript.js index ea94b92798..d5e3ec8507 100644 --- a/tests/config/typescript.js +++ b/tests/src/config/typescript.js @@ -1,7 +1,7 @@ import path from 'path' import { expect } from 'chai' -const config = require(path.join(__dirname, '..', '..', 'config', 'typescript')) +const config = require(path.join(__dirname, '..', '..', '..', 'config', 'typescript')) describe('config typescript', () => { // https://github.com/benmosher/eslint-plugin-import/issues/1525