chore: move tests to separate package

This commit is contained in:
fryorcraken.eth 2022-11-01 20:13:09 +11:00
parent ce9938e464
commit 3d08cb28c8
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
13 changed files with 10 additions and 24 deletions

View File

@ -1,6 +1,6 @@
module.exports = { module.exports = {
parserOptions: { parserOptions: {
tsconfigRootDir: __dirname, tsconfigRootDir: __dirname,
project: "./tsconfig.dev.json", project: "./tsconfig.json",
}, },
}; };

View File

@ -41,21 +41,15 @@
"privacy" "privacy"
], ],
"scripts": { "scripts": {
"build": "run-s build:**",
"build:esm": "tsc",
"fix": "run-s fix:*", "fix": "run-s fix:*",
"fix:prettier": "prettier . --write", "fix:prettier": "prettier . --write",
"fix:lint": "eslint src --ext .ts --ext .cjs --fix", "fix:lint": "eslint tests --ext .ts --ext .cjs --fix",
"check": "run-s check:*", "check": "run-s check:*",
"check:lint": "eslint src --ext .ts", "check:lint": "eslint tests --ext .ts",
"check:prettier": "prettier . --list-different", "check:prettier": "prettier . --list-different",
"check:spelling": "cspell \"{README.md,src/**/*.ts}\"", "check:spelling": "cspell \"{README.md,src/**/*.ts}\"",
"check:tsc": "tsc -p tsconfig.dev.json", "check:tsc": "tsc -p tsconfig.json",
"test": "exit 0 # Tested in @waku/core", "reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build"
"proto": "exit 0 # no proto",
"doc": "exit 0",
"reset-hard": "git clean -dfx -e .idea && git reset --hard && npm i && npm run build",
"release": "exit 0"
}, },
"engines": { "engines": {
"node": ">=16" "node": ">=16"

View File

@ -1,8 +0,0 @@
{
"extends": "./tsconfig",
"compilerOptions": {
"module": "esnext",
"noEmit": true
},
"exclude": []
}

View File

@ -3,9 +3,10 @@
"incremental": true, "incremental": true,
"target": "es2020", "target": "es2020",
"outDir": "dist/", "outDir": "dist/",
"rootDir": "src", "rootDir": "tests",
"noEmit": true,
"moduleResolution": "node", "moduleResolution": "node",
"module": "es2020", "module": "esnext",
"declaration": true, "declaration": true,
"sourceMap": true, "sourceMap": true,
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
@ -45,8 +46,7 @@
"types": ["node", "mocha"], "types": ["node", "mocha"],
"typeRoots": ["node_modules/@types", "src/types"] "typeRoots": ["node_modules/@types", "src/types"]
}, },
"include": ["src"], "include": ["tests"],
"exclude": ["src/**/*.spec.ts", "src/test_utils"],
"compileOnSave": false, "compileOnSave": false,
"ts-node": { "ts-node": {
"files": true "files": true

View File

@ -1,5 +1,5 @@
{ {
"extends": "./tsconfig.dev", "extends": "./tsconfig",
"compilerOptions": { "compilerOptions": {
"noEmit": false "noEmit": false
} }