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 = {
parserOptions: {
tsconfigRootDir: __dirname,
project: "./tsconfig.dev.json",
project: "./tsconfig.json",
},
};

View File

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

View File

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

View File

@ -3,9 +3,10 @@
"incremental": true,
"target": "es2020",
"outDir": "dist/",
"rootDir": "src",
"rootDir": "tests",
"noEmit": true,
"moduleResolution": "node",
"module": "es2020",
"module": "esnext",
"declaration": true,
"sourceMap": true,
"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"],
"typeRoots": ["node_modules/@types", "src/types"]
},
"include": ["src"],
"exclude": ["src/**/*.spec.ts", "src/test_utils"],
"include": ["tests"],
"compileOnSave": false,
"ts-node": {
"files": true

View File

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