Split *.spec.ts into own reference (#4353)

This commit is contained in:
Jaco
2021-12-19 11:33:39 +02:00
committed by GitHub
parent 8f1eec6522
commit 1c78464e23
9 changed files with 77 additions and 6 deletions
+2 -2
View File
@@ -6,8 +6,8 @@
"rootDir": "./src"
},
"exclude": [
"**/augment/*.ts",
"**/types-base/*.ts"
"**/*.manual.ts",
"**/*.spec.ts"
],
"references": [
{ "path": "../api-augment" },
+26
View File
@@ -0,0 +1,26 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src",
"emitDeclarationOnly": false,
"noEmit": true
},
"include": [
"**/*.manual.ts",
"**/*.spec.ts",
"**/test/**/*"
],
"references": [
{ "path": "../api" },
{ "path": "../api-augment" },
{ "path": "../api-base" },
{ "path": "../api-derive" },
{ "path": "../rpc-core" },
{ "path": "../rpc-provider" },
{ "path": "../types" },
{ "path": "../types-augment" },
{ "path": "../types-known" }
]
}
+3
View File
@@ -5,6 +5,9 @@
"outDir": "./build",
"rootDir": "./src"
},
"exclude": [
"**/*.spec.ts"
],
"references": [
{ "path": "../rpc-augment" },
{ "path": "../rpc-provider" }
+18
View File
@@ -0,0 +1,18 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src",
"emitDeclarationOnly": false,
"noEmit": true
},
"include": [
"**/*.spec.ts"
],
"references": [
{ "path": "../rpc-core" },
{ "path": "../rpc-augment" },
{ "path": "../rpc-provider" }
]
}
+1 -2
View File
@@ -1,8 +1,7 @@
// Copyright 2017-2021 @polkadot/rpc-provider authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { TEST_HTTP_URL } from '@polkadot/rpc-provider/mock/mockHttp';
import { TEST_HTTP_URL } from '../mock/mockHttp';
import { HttpProvider } from './';
describe('Http', (): void => {
+1 -2
View File
@@ -3,8 +3,7 @@
import type { Mock } from '../mock/types';
import { mockHttp, TEST_HTTP_URL } from '@polkadot/rpc-provider/mock/mockHttp';
import { mockHttp, TEST_HTTP_URL } from '../mock/mockHttp';
import { HttpProvider } from './';
describe('send', (): void => {
+3
View File
@@ -6,6 +6,9 @@
"rootDir": "./src",
"resolveJsonModule": true
},
"exclude": [
"**/*.spec.ts"
],
"references": [
{ "path": "../types" },
{ "path": "../types-augment" }
+19
View File
@@ -0,0 +1,19 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": "..",
"outDir": "./build",
"rootDir": "./src",
"resolveJsonModule": true,
"emitDeclarationOnly": false,
"noEmit": true
},
"include": [
"**/*.spec.ts"
],
"references": [
{ "path": "../rpc-provider" },
{ "path": "../types" },
{ "path": "../types-augment" }
]
}
+4
View File
@@ -5,14 +5,18 @@
"files": [],
"references": [
{ "path": "./packages/api" },
{ "path": "./packages/api/tsconfig.spec.json" },
{ "path": "./packages/api-augment" },
{ "path": "./packages/api-base" },
{ "path": "./packages/api-contract" },
{ "path": "./packages/api-contract/tsconfig.spec.json" },
{ "path": "./packages/api-derive" },
{ "path": "./packages/api-derive/tsconfig.spec.json" },
{ "path": "./packages/rpc-augment" },
{ "path": "./packages/rpc-core" },
{ "path": "./packages/rpc-core/tsconfig.spec.json" },
{ "path": "./packages/rpc-provider" },
{ "path": "./packages/rpc-provider/tsconfig.spec.json" },
{ "path": "./packages/typegen" },
{ "path": "./packages/types" },
{ "path": "./packages/types/tsconfig.spec.json" },