diff --git a/packages/testlibng-nosub/README.md b/packages/testlibng-nosub/README.md new file mode 100644 index 0000000..f418001 --- /dev/null +++ b/packages/testlibng-nosub/README.md @@ -0,0 +1,7 @@ +# testlibng-nosub + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test testlibng-nosub` to execute the unit tests. diff --git a/packages/testlibng-nosub/eslint.config.js b/packages/testlibng-nosub/eslint.config.js new file mode 100644 index 0000000..ef124d5 --- /dev/null +++ b/packages/testlibng-nosub/eslint.config.js @@ -0,0 +1,59 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ + extends: [ + 'plugin:@nx/angular', + 'plugin:@angular-eslint/template/process-inline-templates', + ], + }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + ...config.rules, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'lib', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'lib', + style: 'kebab-case', + }, + ], + }, + })), + ...compat + .config({ extends: ['plugin:@nx/angular-template'] }) + .map((config) => ({ + ...config, + files: ['**/*.html'], + rules: { + ...config.rules, + }, + })), + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['**/*.json'], + rules: { + ...config.rules, + '@nx/dependency-checks': 'error', + }, + })), +]; diff --git a/packages/testlibng-nosub/jest.config.ts b/packages/testlibng-nosub/jest.config.ts new file mode 100644 index 0000000..a63896e --- /dev/null +++ b/packages/testlibng-nosub/jest.config.ts @@ -0,0 +1,22 @@ +/* eslint-disable */ +export default { + displayName: 'testlibng-nosub', + preset: '../../jest.preset.js', + setupFilesAfterEnv: ['/src/test-setup.ts'], + coverageDirectory: '../../coverage/packages/testlibng-nosub', + transform: { + '^.+\\.(ts|mjs|js|html)$': [ + 'jest-preset-angular', + { + tsconfig: '/tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + }, + ], + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], +}; diff --git a/packages/testlibng-nosub/ng-package.json b/packages/testlibng-nosub/ng-package.json new file mode 100644 index 0000000..6ac71f6 --- /dev/null +++ b/packages/testlibng-nosub/ng-package.json @@ -0,0 +1,7 @@ +{ + "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", + "dest": "../../dist/packages/testlibng-nosub", + "lib": { + "entryFile": "src/index.ts" + } +} diff --git a/packages/testlibng-nosub/package.json b/packages/testlibng-nosub/package.json new file mode 100644 index 0000000..adac0bc --- /dev/null +++ b/packages/testlibng-nosub/package.json @@ -0,0 +1,17 @@ +{ + "name": "@gipo355/testlibng-nosub", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^18.0.0", + "@angular/core": "^18.0.0" + }, + "exports": { + "./test": { + "types": "./test.d.ts", + "esm2022": "./esm2022/lib/test/test.component.mjs", + "esm": "./esm2022/lib/test/test.component.mjs", + "default": "./fesm2022/lib/test/test.component.mjs" + } + }, + "sideEffects": false +} diff --git a/packages/testlibng-nosub/project.json b/packages/testlibng-nosub/project.json new file mode 100644 index 0000000..d465aa2 --- /dev/null +++ b/packages/testlibng-nosub/project.json @@ -0,0 +1,36 @@ +{ + "name": "testlibng-nosub", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "packages/testlibng-nosub/src", + "prefix": "lib", + "projectType": "library", + "tags": [], + "targets": { + "build": { + "executor": "@nx/angular:package", + "outputs": ["{workspaceRoot}/dist/{projectRoot}"], + "options": { + "project": "packages/testlibng-nosub/ng-package.json" + }, + "configurations": { + "production": { + "tsConfig": "packages/testlibng-nosub/tsconfig.lib.prod.json" + }, + "development": { + "tsConfig": "packages/testlibng-nosub/tsconfig.lib.json" + } + }, + "defaultConfiguration": "production" + }, + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "packages/testlibng-nosub/jest.config.ts" + } + }, + "lint": { + "executor": "@nx/eslint:lint" + } + } +} diff --git a/packages/testlibng-nosub/src/index.ts b/packages/testlibng-nosub/src/index.ts new file mode 100644 index 0000000..afeafb2 --- /dev/null +++ b/packages/testlibng-nosub/src/index.ts @@ -0,0 +1,2 @@ +export * from './lib/testlibng-nosub/testlibng-nosub.component'; +export * from './lib/test/test.component'; diff --git a/packages/testlibng-nosub/src/lib/test/test.component.html b/packages/testlibng-nosub/src/lib/test/test.component.html new file mode 100644 index 0000000..941f267 --- /dev/null +++ b/packages/testlibng-nosub/src/lib/test/test.component.html @@ -0,0 +1 @@ +

test works!

diff --git a/packages/testlibng-nosub/src/lib/test/test.component.scss b/packages/testlibng-nosub/src/lib/test/test.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/packages/testlibng-nosub/src/lib/test/test.component.spec.ts b/packages/testlibng-nosub/src/lib/test/test.component.spec.ts new file mode 100644 index 0000000..a3c62ee --- /dev/null +++ b/packages/testlibng-nosub/src/lib/test/test.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { TestComponent } from './test.component'; + +describe('TestComponent', () => { + let component: TestComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [TestComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(TestComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/packages/testlibng-nosub/src/lib/test/test.component.ts b/packages/testlibng-nosub/src/lib/test/test.component.ts new file mode 100644 index 0000000..0f0b356 --- /dev/null +++ b/packages/testlibng-nosub/src/lib/test/test.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +@Component({ + selector: 'lib-test', + standalone: true, + imports: [CommonModule], + templateUrl: './test.component.html', + styleUrl: './test.component.scss', +}) +export class TestComponent {} diff --git a/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.css b/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.css new file mode 100644 index 0000000..e69de29 diff --git a/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.html b/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.html new file mode 100644 index 0000000..5bae099 --- /dev/null +++ b/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.html @@ -0,0 +1 @@ +

testlibng-nosub works!

diff --git a/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.spec.ts b/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.spec.ts new file mode 100644 index 0000000..c97a50c --- /dev/null +++ b/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { TestlibngNosubComponent } from './testlibng-nosub.component'; + +describe('TestlibngNosubComponent', () => { + let component: TestlibngNosubComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [TestlibngNosubComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(TestlibngNosubComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.ts b/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.ts new file mode 100644 index 0000000..59d6339 --- /dev/null +++ b/packages/testlibng-nosub/src/lib/testlibng-nosub/testlibng-nosub.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +@Component({ + selector: 'lib-testlibng-nosub', + standalone: true, + imports: [CommonModule], + templateUrl: './testlibng-nosub.component.html', + styleUrl: './testlibng-nosub.component.css', +}) +export class TestlibngNosubComponent {} diff --git a/packages/testlibng-nosub/src/test-setup.ts b/packages/testlibng-nosub/src/test-setup.ts new file mode 100644 index 0000000..ab1eeeb --- /dev/null +++ b/packages/testlibng-nosub/src/test-setup.ts @@ -0,0 +1,8 @@ +// @ts-expect-error https://thymikee.github.io/jest-preset-angular/docs/getting-started/test-environment +globalThis.ngJest = { + testEnvironmentOptions: { + errorOnUnknownElements: true, + errorOnUnknownProperties: true, + }, +}; +import 'jest-preset-angular/setup-jest'; diff --git a/packages/testlibng-nosub/tsconfig.json b/packages/testlibng-nosub/tsconfig.json new file mode 100644 index 0000000..9204973 --- /dev/null +++ b/packages/testlibng-nosub/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "target": "es2022", + "useDefineForClassFields": false, + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "extends": "../../tsconfig.base.json", + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + } +} diff --git a/packages/testlibng-nosub/tsconfig.lib.json b/packages/testlibng-nosub/tsconfig.lib.json new file mode 100644 index 0000000..063e525 --- /dev/null +++ b/packages/testlibng-nosub/tsconfig.lib.json @@ -0,0 +1,17 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "declaration": true, + "declarationMap": true, + "inlineSources": true, + "types": [] + }, + "exclude": [ + "src/**/*.spec.ts", + "src/test-setup.ts", + "jest.config.ts", + "src/**/*.test.ts" + ], + "include": ["src/**/*.ts"] +} diff --git a/packages/testlibng-nosub/tsconfig.lib.prod.json b/packages/testlibng-nosub/tsconfig.lib.prod.json new file mode 100644 index 0000000..2a2faa8 --- /dev/null +++ b/packages/testlibng-nosub/tsconfig.lib.prod.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.lib.json", + "compilerOptions": { + "declarationMap": false + }, + "angularCompilerOptions": { + "compilationMode": "partial" + } +} diff --git a/packages/testlibng-nosub/tsconfig.spec.json b/packages/testlibng-nosub/tsconfig.spec.json new file mode 100644 index 0000000..53fbfcd --- /dev/null +++ b/packages/testlibng-nosub/tsconfig.spec.json @@ -0,0 +1,16 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "target": "es2016", + "types": ["jest", "node"] + }, + "files": ["src/test-setup.ts"], + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.d.ts" + ] +} diff --git a/packages/testlibng/README.md b/packages/testlibng/README.md new file mode 100644 index 0000000..b3188f1 --- /dev/null +++ b/packages/testlibng/README.md @@ -0,0 +1,7 @@ +# testlibng + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test testlibng` to execute the unit tests. diff --git a/packages/testlibng/eslint.config.js b/packages/testlibng/eslint.config.js new file mode 100644 index 0000000..ef124d5 --- /dev/null +++ b/packages/testlibng/eslint.config.js @@ -0,0 +1,59 @@ +const { FlatCompat } = require('@eslint/eslintrc'); +const baseConfig = require('../../eslint.config.js'); +const js = require('@eslint/js'); + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, +}); + +module.exports = [ + ...baseConfig, + ...compat + .config({ + extends: [ + 'plugin:@nx/angular', + 'plugin:@angular-eslint/template/process-inline-templates', + ], + }) + .map((config) => ({ + ...config, + files: ['**/*.ts'], + rules: { + ...config.rules, + '@angular-eslint/directive-selector': [ + 'error', + { + type: 'attribute', + prefix: 'lib', + style: 'camelCase', + }, + ], + '@angular-eslint/component-selector': [ + 'error', + { + type: 'element', + prefix: 'lib', + style: 'kebab-case', + }, + ], + }, + })), + ...compat + .config({ extends: ['plugin:@nx/angular-template'] }) + .map((config) => ({ + ...config, + files: ['**/*.html'], + rules: { + ...config.rules, + }, + })), + ...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ + ...config, + files: ['**/*.json'], + rules: { + ...config.rules, + '@nx/dependency-checks': 'error', + }, + })), +]; diff --git a/packages/testlibng/jest.config.ts b/packages/testlibng/jest.config.ts new file mode 100644 index 0000000..e6c0b92 --- /dev/null +++ b/packages/testlibng/jest.config.ts @@ -0,0 +1,22 @@ +/* eslint-disable */ +export default { + displayName: 'testlibng', + preset: '../../jest.preset.js', + setupFilesAfterEnv: ['/src/test-setup.ts'], + coverageDirectory: '../../coverage/packages/testlibng', + transform: { + '^.+\\.(ts|mjs|js|html)$': [ + 'jest-preset-angular', + { + tsconfig: '/tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + }, + ], + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], +}; diff --git a/packages/testlibng/ng-package.json b/packages/testlibng/ng-package.json new file mode 100644 index 0000000..7a3da0f --- /dev/null +++ b/packages/testlibng/ng-package.json @@ -0,0 +1,7 @@ +{ + "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", + "dest": "../../dist/packages/testlibng", + "lib": { + "entryFile": "src/index.ts" + } +} diff --git a/packages/testlibng/package.json b/packages/testlibng/package.json new file mode 100644 index 0000000..4db7a41 --- /dev/null +++ b/packages/testlibng/package.json @@ -0,0 +1,9 @@ +{ + "name": "@gipo355/testlibng", + "version": "0.0.1", + "peerDependencies": { + "@angular/common": "^18.0.0", + "@angular/core": "^18.0.0" + }, + "sideEffects": false +} diff --git a/packages/testlibng/project.json b/packages/testlibng/project.json new file mode 100644 index 0000000..98a0168 --- /dev/null +++ b/packages/testlibng/project.json @@ -0,0 +1,36 @@ +{ + "name": "testlibng", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "packages/testlibng/src", + "prefix": "lib", + "projectType": "library", + "tags": [], + "targets": { + "build": { + "executor": "@nx/angular:package", + "outputs": ["{workspaceRoot}/dist/{projectRoot}"], + "options": { + "project": "packages/testlibng/ng-package.json" + }, + "configurations": { + "production": { + "tsConfig": "packages/testlibng/tsconfig.lib.prod.json" + }, + "development": { + "tsConfig": "packages/testlibng/tsconfig.lib.json" + } + }, + "defaultConfiguration": "production" + }, + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "packages/testlibng/jest.config.ts" + } + }, + "lint": { + "executor": "@nx/eslint:lint" + } + } +} diff --git a/packages/testlibng/resource/README.md b/packages/testlibng/resource/README.md new file mode 100644 index 0000000..7da626e --- /dev/null +++ b/packages/testlibng/resource/README.md @@ -0,0 +1,4 @@ +# @gipo355/testlibng/resource + +Secondary entry point of `@gipo355/testlibng`. It can be used by importing from +`@gipo355/testlibng/resource`. diff --git a/packages/testlibng/resource/ng-package.json b/packages/testlibng/resource/ng-package.json new file mode 100644 index 0000000..c781f0d --- /dev/null +++ b/packages/testlibng/resource/ng-package.json @@ -0,0 +1,5 @@ +{ + "lib": { + "entryFile": "src/index.ts" + } +} diff --git a/packages/testlibng/resource/src/index.ts b/packages/testlibng/resource/src/index.ts new file mode 100644 index 0000000..28218de --- /dev/null +++ b/packages/testlibng/resource/src/index.ts @@ -0,0 +1 @@ +export * from './lib/resource.module'; diff --git a/packages/testlibng/resource/src/lib/resource.module.ts b/packages/testlibng/resource/src/lib/resource.module.ts new file mode 100644 index 0000000..954b270 --- /dev/null +++ b/packages/testlibng/resource/src/lib/resource.module.ts @@ -0,0 +1,7 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +@NgModule({ + imports: [CommonModule], +}) +export class ResourceModule {} diff --git a/packages/testlibng/src/index.ts b/packages/testlibng/src/index.ts new file mode 100644 index 0000000..221394b --- /dev/null +++ b/packages/testlibng/src/index.ts @@ -0,0 +1 @@ +export * from './lib/testlibng/testlibng.component'; diff --git a/packages/testlibng/src/lib/testlibng/testlibng.component.css b/packages/testlibng/src/lib/testlibng/testlibng.component.css new file mode 100644 index 0000000..e69de29 diff --git a/packages/testlibng/src/lib/testlibng/testlibng.component.html b/packages/testlibng/src/lib/testlibng/testlibng.component.html new file mode 100644 index 0000000..fa718d7 --- /dev/null +++ b/packages/testlibng/src/lib/testlibng/testlibng.component.html @@ -0,0 +1 @@ +

testlibng works!

diff --git a/packages/testlibng/src/lib/testlibng/testlibng.component.spec.ts b/packages/testlibng/src/lib/testlibng/testlibng.component.spec.ts new file mode 100644 index 0000000..22cc431 --- /dev/null +++ b/packages/testlibng/src/lib/testlibng/testlibng.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { TestlibngComponent } from './testlibng.component'; + +describe('TestlibngComponent', () => { + let component: TestlibngComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [TestlibngComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(TestlibngComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/packages/testlibng/src/lib/testlibng/testlibng.component.ts b/packages/testlibng/src/lib/testlibng/testlibng.component.ts new file mode 100644 index 0000000..79412d4 --- /dev/null +++ b/packages/testlibng/src/lib/testlibng/testlibng.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +@Component({ + selector: 'lib-testlibng', + standalone: true, + imports: [CommonModule], + templateUrl: './testlibng.component.html', + styleUrl: './testlibng.component.css', +}) +export class TestlibngComponent {} diff --git a/packages/testlibng/src/test-setup.ts b/packages/testlibng/src/test-setup.ts new file mode 100644 index 0000000..ab1eeeb --- /dev/null +++ b/packages/testlibng/src/test-setup.ts @@ -0,0 +1,8 @@ +// @ts-expect-error https://thymikee.github.io/jest-preset-angular/docs/getting-started/test-environment +globalThis.ngJest = { + testEnvironmentOptions: { + errorOnUnknownElements: true, + errorOnUnknownProperties: true, + }, +}; +import 'jest-preset-angular/setup-jest'; diff --git a/packages/testlibng/tsconfig.json b/packages/testlibng/tsconfig.json new file mode 100644 index 0000000..9204973 --- /dev/null +++ b/packages/testlibng/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "target": "es2022", + "useDefineForClassFields": false, + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "extends": "../../tsconfig.base.json", + "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, + "strictInjectionParameters": true, + "strictInputAccessModifiers": true, + "strictTemplates": true + } +} diff --git a/packages/testlibng/tsconfig.lib.json b/packages/testlibng/tsconfig.lib.json new file mode 100644 index 0000000..260cddc --- /dev/null +++ b/packages/testlibng/tsconfig.lib.json @@ -0,0 +1,17 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "declaration": true, + "declarationMap": true, + "inlineSources": true, + "types": [] + }, + "exclude": [ + "**/*.spec.ts", + "test-setup.ts", + "jest.config.ts", + "**/*.test.ts" + ], + "include": ["**/*.ts"] +} diff --git a/packages/testlibng/tsconfig.lib.prod.json b/packages/testlibng/tsconfig.lib.prod.json new file mode 100644 index 0000000..2a2faa8 --- /dev/null +++ b/packages/testlibng/tsconfig.lib.prod.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.lib.json", + "compilerOptions": { + "declarationMap": false + }, + "angularCompilerOptions": { + "compilationMode": "partial" + } +} diff --git a/packages/testlibng/tsconfig.spec.json b/packages/testlibng/tsconfig.spec.json new file mode 100644 index 0000000..53fbfcd --- /dev/null +++ b/packages/testlibng/tsconfig.spec.json @@ -0,0 +1,16 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "target": "es2016", + "types": ["jest", "node"] + }, + "files": ["src/test-setup.ts"], + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.d.ts" + ] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c3d6577..98ce71c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1732,15 +1732,6 @@ importers: specifier: ^18.0.0 version: 18.0.4(rxjs@7.8.1)(zone.js@0.14.7) - packages/testlibng-nosub: - dependencies: - '@angular/common': - specifier: ^18.0.0 - version: 18.0.4(@angular/core@18.0.4(rxjs@7.8.1)(zone.js@0.14.7))(rxjs@7.8.1) - '@angular/core': - specifier: ^18.0.0 - version: 18.0.4(rxjs@7.8.1)(zone.js@0.14.7) - packages: '@acuminous/bitsyntax@0.1.2':