chore: remove tsc build from local workspaces (#2020)
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
"extends": "./node_modules/@standardnotes/config/src/tsconfig.json",
|
"extends": "./node_modules/@standardnotes/config/src/tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"target": "es5",
|
"target": "es6",
|
||||||
"lib": ["es6", "dom", "es2016", "es2017"],
|
"lib": ["es6", "dom", "es2016", "es2017"],
|
||||||
"types": ["react"],
|
"types": ["react", "jest"],
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
|
|||||||
19
common.jest.json
Normal file
19
common.jest.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"collectCoverageFrom": ["src/**/*.{ts,tsx}", "!**/index.ts"],
|
||||||
|
"coverageReporters": ["text", "lcov", "html", "json-summary"],
|
||||||
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(tsx?)$",
|
||||||
|
"testPathIgnorePatterns": ["/node_modules/"],
|
||||||
|
"coveragePathIgnorePatterns": ["/node_modules/"],
|
||||||
|
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"],
|
||||||
|
"transform": {
|
||||||
|
"^.+\\.tsx?$": ["ts-jest", { "tsconfig": "tsconfig.json" }]
|
||||||
|
},
|
||||||
|
"coverageThreshold": {
|
||||||
|
"global": {
|
||||||
|
"branches": 100,
|
||||||
|
"functions": 100,
|
||||||
|
"lines": 100,
|
||||||
|
"statements": 100
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,12 +1,10 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
transform: {
|
||||||
'ts-jest': {
|
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.json' }],
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
coverageThreshold: {
|
coverageThreshold: {
|
||||||
global: {
|
global: {
|
||||||
|
|||||||
@@ -8,3 +8,5 @@ export * from './WebSocket/WebSocketApiService'
|
|||||||
export * from './WebSocket/WebSocketApiServiceInterface'
|
export * from './WebSocket/WebSocketApiServiceInterface'
|
||||||
export * from './Workspace/WorkspaceApiService'
|
export * from './Workspace/WorkspaceApiService'
|
||||||
export * from './Workspace/WorkspaceApiServiceInterface'
|
export * from './Workspace/WorkspaceApiServiceInterface'
|
||||||
|
export * from './Workspace/WorkspaceUser'
|
||||||
|
export * from './Workspace/Workspace'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Workspace } from '@standardnotes/models'
|
import { Workspace } from './../../Client/Workspace/Workspace'
|
||||||
|
|
||||||
export type WorkspaceListResponseBody = {
|
export type WorkspaceListResponseBody = {
|
||||||
ownedWorkspaces: Array<Workspace>
|
ownedWorkspaces: Array<Workspace>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { WorkspaceUser } from '@standardnotes/models'
|
import { WorkspaceUser } from './../../Client/Workspace/WorkspaceUser'
|
||||||
|
|
||||||
export type WorkspaceUserListResponseBody = {
|
export type WorkspaceUserListResponseBody = {
|
||||||
users: Array<WorkspaceUser>
|
users: Array<WorkspaceUser>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"main": "./src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "tsc -p tsconfig.json --watch"
|
"tsc": "tsc -p tsconfig.json"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lexical/react": "^0.6.0",
|
"@lexical/react": "^0.6.0",
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
|
||||||
'ts-jest': {
|
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
|
||||||
'ts-jest': {
|
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|||||||
@@ -1,14 +1,7 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
coveragePathIgnorePatterns: ['/example/'],
|
||||||
'ts-jest': {
|
}
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
coveragePathIgnorePatterns: [
|
|
||||||
"/example/"
|
|
||||||
]
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
|
||||||
'ts-jest': {
|
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import AsyncStorage from '@react-native-community/async-storage'
|
import AsyncStorage from '@react-native-community/async-storage'
|
||||||
import SNReactNative from '@standardnotes/react-native-utils'
|
import SNReactNative from '@standardnotes/react-native-utils'
|
||||||
import { AppleIAPReceipt } from '@standardnotes/services/dist/Domain/Subscription/AppleIAPReceipt'
|
import { AppleIAPReceipt } from '@standardnotes/services'
|
||||||
import {
|
import {
|
||||||
AppleIAPProductId,
|
AppleIAPProductId,
|
||||||
ApplicationIdentifier,
|
ApplicationIdentifier,
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
|
||||||
'ts-jest': {
|
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|||||||
@@ -5,19 +5,11 @@
|
|||||||
"node": ">=16.0.0 <17.0.0"
|
"node": ">=16.0.0 <17.0.0"
|
||||||
},
|
},
|
||||||
"description": "Models used in SNJS library",
|
"description": "Models used in SNJS library",
|
||||||
"main": "dist/index.js",
|
|
||||||
"author": "Standard Notes",
|
"author": "Standard Notes",
|
||||||
"types": "dist/index.d.ts",
|
"main": "./src/index.ts",
|
||||||
"files": [
|
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -fr dist",
|
"tsc": "tsc -p tsconfig.json",
|
||||||
"prestart": "yarn clean",
|
|
||||||
"start": "tsc -p tsconfig.json --watch",
|
|
||||||
"prebuild": "yarn clean",
|
|
||||||
"build": "tsc -p tsconfig.json",
|
|
||||||
"lint": "eslint src --ext .ts",
|
"lint": "eslint src --ext .ts",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export const isTheme = (x: ItemInterface): x is SNTheme => x.content_type === Co
|
|||||||
|
|
||||||
export class SNTheme extends SNComponent {
|
export class SNTheme extends SNComponent {
|
||||||
public override area: ComponentArea = ComponentArea.Themes
|
public override area: ComponentArea = ComponentArea.Themes
|
||||||
public override readonly package_info!: ThemePackageInfo
|
public declare readonly package_info: ThemePackageInfo
|
||||||
|
|
||||||
isLayerable(): boolean {
|
isLayerable(): boolean {
|
||||||
return useBoolean(this.package_info && this.package_info.layerable, false)
|
return useBoolean(this.package_info && this.package_info.layerable, false)
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ export * from './Api/Subscription/Invitation'
|
|||||||
export * from './Api/Subscription/InvitationStatus'
|
export * from './Api/Subscription/InvitationStatus'
|
||||||
export * from './Api/Subscription/InviteeIdentifierType'
|
export * from './Api/Subscription/InviteeIdentifierType'
|
||||||
export * from './Api/Subscription/InviterIdentifierType'
|
export * from './Api/Subscription/InviterIdentifierType'
|
||||||
export * from './Api/Workspace/Workspace'
|
|
||||||
export * from './Api/Workspace/WorkspaceUser'
|
|
||||||
export * from './Device/Environment'
|
export * from './Device/Environment'
|
||||||
export * from './Device/Platform'
|
export * from './Device/Platform'
|
||||||
export * from './Local/KeyParams/RootKeyParamsInterface'
|
export * from './Local/KeyParams/RootKeyParamsInterface'
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../node_modules/@standardnotes/config/src/tsconfig.json",
|
"extends": "../../UILib.tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist"
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["src/**/*"],
|
||||||
"src/**/*"
|
|
||||||
],
|
|
||||||
"references": [],
|
|
||||||
"exclude": ["**/*.spec.ts"]
|
"exclude": ["**/*.spec.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
|
||||||
'ts-jest': {
|
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
transform: {
|
||||||
'ts-jest': {
|
'^.+\\.tsx?$': ['ts-jest', { tsconfig: 'tsconfig.json' }],
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
coverageThreshold: {
|
coverageThreshold: {
|
||||||
global: {
|
global: {
|
||||||
branches: 6,
|
branches: 6,
|
||||||
functions: 9,
|
functions: 9,
|
||||||
lines: 13,
|
lines: 13,
|
||||||
statements: 13
|
statements: 13,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|||||||
@@ -5,20 +5,12 @@
|
|||||||
"node": ">=16.0.0 <17.0.0"
|
"node": ">=16.0.0 <17.0.0"
|
||||||
},
|
},
|
||||||
"description": "Services for Standard Notes SNJS library",
|
"description": "Services for Standard Notes SNJS library",
|
||||||
"main": "dist/index.js",
|
"main": "./src/index.ts",
|
||||||
"author": "Standard Notes",
|
"author": "Standard Notes",
|
||||||
"types": "dist/index.d.ts",
|
|
||||||
"files": [
|
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -fr dist",
|
"tsc": "tsc --project tsconfig.json",
|
||||||
"prestart": "yarn clean",
|
|
||||||
"start": "tsc -p tsconfig.json --watch",
|
|
||||||
"prebuild": "yarn clean",
|
|
||||||
"build": "tsc -p tsconfig.json",
|
|
||||||
"lint": "eslint src --ext .ts",
|
"lint": "eslint src --ext .ts",
|
||||||
"lint:fix": "eslint src --ext .ts --fix",
|
"lint:fix": "eslint src --ext .ts --fix",
|
||||||
"test": "jest spec --coverage"
|
"test": "jest spec --coverage"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Uuid, WorkspaceAccessLevel, WorkspaceType } from '@standardnotes/common'
|
import { Uuid, WorkspaceAccessLevel, WorkspaceType } from '@standardnotes/common'
|
||||||
import { Workspace, WorkspaceUser } from '@standardnotes/models'
|
import { Workspace, WorkspaceUser } from '@standardnotes/api'
|
||||||
|
|
||||||
export interface WorkspaceClientInterface {
|
export interface WorkspaceClientInterface {
|
||||||
createWorkspace(dto: {
|
createWorkspace(dto: {
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import { WorkspaceApiServiceInterface } from '@standardnotes/api'
|
import { WorkspaceApiServiceInterface, Workspace, WorkspaceUser } from '@standardnotes/api'
|
||||||
import { Uuid, WorkspaceAccessLevel, WorkspaceType } from '@standardnotes/common'
|
import { Uuid, WorkspaceAccessLevel, WorkspaceType } from '@standardnotes/common'
|
||||||
import { Workspace, WorkspaceUser } from '@standardnotes/models'
|
|
||||||
|
|
||||||
import { InternalEventBusInterface } from '../Internal/InternalEventBusInterface'
|
import { InternalEventBusInterface } from '../Internal/InternalEventBusInterface'
|
||||||
import { AbstractService } from '../Service/AbstractService'
|
import { AbstractService } from '../Service/AbstractService'
|
||||||
import { WorkspaceClientInterface } from './WorkspaceClientInterface'
|
import { WorkspaceClientInterface } from './WorkspaceClientInterface'
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../node_modules/@standardnotes/config/src/tsconfig.json",
|
"extends": "../../UILib.tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist"
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["src/**/*"],
|
||||||
"src/**/*"
|
"exclude": ["**/*.spec.ts", "node_modules"]
|
||||||
],
|
|
||||||
"references": [],
|
|
||||||
"exclude": ["**/*.spec.ts", "dist", "node_modules"]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
|
||||||
'ts-jest': {
|
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
@@ -7,12 +7,11 @@ module.exports = {
|
|||||||
'@Lib/(.*)': '<rootDir>/lib/$1',
|
'@Lib/(.*)': '<rootDir>/lib/$1',
|
||||||
'@Services/(.*)': '<rootDir>/lib/Services/$1',
|
'@Services/(.*)': '<rootDir>/lib/Services/$1',
|
||||||
},
|
},
|
||||||
globals: {
|
transform: {
|
||||||
'ts-jest': {
|
'^.+\\.tsx?$': [
|
||||||
tsconfig: '<rootDir>/lib/tsconfig.json',
|
'ts-jest',
|
||||||
isolatedModules: true,
|
{ tsconfig: './lib/tsconfig.json', isolatedModules: true, babelConfig: 'babel.config.js' },
|
||||||
babelConfig: 'babel.config.js',
|
],
|
||||||
},
|
|
||||||
},
|
},
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
collectCoverageFrom: ['lib/**/{!(index),}.ts'],
|
collectCoverageFrom: ['lib/**/{!(index),}.ts'],
|
||||||
@@ -23,9 +22,6 @@ module.exports = {
|
|||||||
roots: ['<rootDir>/lib'],
|
roots: ['<rootDir>/lib'],
|
||||||
setupFiles: ['<rootDir>/jest-global.ts'],
|
setupFiles: ['<rootDir>/jest-global.ts'],
|
||||||
setupFilesAfterEnv: [],
|
setupFilesAfterEnv: [],
|
||||||
transform: {
|
|
||||||
'^.+\\.(ts|js)?$': 'ts-jest',
|
|
||||||
},
|
|
||||||
coverageThreshold: {
|
coverageThreshold: {
|
||||||
global: {
|
global: {
|
||||||
branches: 13,
|
branches: 13,
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
|
||||||
'ts-jest': {
|
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|||||||
@@ -5,20 +5,12 @@
|
|||||||
"node": ">=16.0.0 <17.0.0"
|
"node": ">=16.0.0 <17.0.0"
|
||||||
},
|
},
|
||||||
"description": "UI Services for Standard Notes clients",
|
"description": "UI Services for Standard Notes clients",
|
||||||
"main": "dist/index.js",
|
"main": "./src/index.ts",
|
||||||
"author": "Standard Notes",
|
"author": "Standard Notes",
|
||||||
"types": "dist/index.d.ts",
|
|
||||||
"files": [
|
|
||||||
"dist"
|
|
||||||
],
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rm -fr dist",
|
"tsc": "tsc --project tsconfig.json",
|
||||||
"prestart": "yarn clean",
|
|
||||||
"start": "tsc -p tsconfig.json --watch",
|
|
||||||
"prebuild": "yarn clean",
|
|
||||||
"build": "tsc -p tsconfig.json",
|
|
||||||
"lint": "eslint src --ext .ts",
|
"lint": "eslint src --ext .ts",
|
||||||
"test": "jest spec"
|
"test": "jest spec"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,14 +1,11 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../node_modules/@standardnotes/config/src/tsconfig.json",
|
"extends": "../../UILib.tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"rootDir": "./src",
|
"rootDir": "./src",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx"
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["src/**/*"],
|
||||||
"src/**/*"
|
"exclude": ["**/*.spec.ts", "node_modules"]
|
||||||
],
|
|
||||||
"references": [],
|
|
||||||
"exclude": ["**/*.spec.ts", "dist", "node_modules"]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,19 +1,14 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const base = require('../../node_modules/@standardnotes/config/src/jest.json');
|
const base = require('../../common.jest.json')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
globals: {
|
|
||||||
'ts-jest': {
|
|
||||||
tsconfig: 'tsconfig.json',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
coverageThreshold: {
|
coverageThreshold: {
|
||||||
global: {
|
global: {
|
||||||
branches: 4,
|
branches: 4,
|
||||||
functions: 4,
|
functions: 4,
|
||||||
lines: 24,
|
lines: 24,
|
||||||
statements: 25
|
statements: 25,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|||||||
Reference in New Issue
Block a user