Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,348 changes: 2,944 additions & 2,404 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@commitlint/config-angular": "20.5.0",
"@eslint/eslintrc": "3.3.5",
"@eslint/js": "9.39.4",
"@types/jest": "30.0.0",
"@jest/types": "30.3.0",
"@types/node": "24.12.2",
"@typescript-eslint/eslint-plugin": "8.58.2",
"@typescript-eslint/parser": "8.58.2",
Expand Down Expand Up @@ -108,4 +108,4 @@
"lint-staged": {
"**/*.{ts,json}": []
}
}
}
1 change: 1 addition & 0 deletions src/lib/application/application.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { ApplicationOptions } from './application.schema';
import { describe, expect, it } from '@jest/globals';

describe('Application Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
8 changes: 4 additions & 4 deletions src/lib/application/files/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@jest/types": "^30.3.0",
"@nestjs/cli": "^11.0.0",
"@nestjs/schematics": "^11.0.0",
"@nestjs/testing": "^11.0.1",
"@types/express": "^5.0.0",
"@types/jest": "^30.0.0",
"@types/node": "^24.0.0",
"@types/supertest": "^7.0.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.2",
"globals": "^17.0.0",
"jest": "^30.0.0",
"jest": "^30.3.0",
"prettier": "^3.4.2",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "^29.2.5",
"ts-jest": "^29.4.9",
"ts-loader": "^9.5.2",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
Expand All @@ -68,4 +68,4 @@
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it, beforeEach } from '@jest/globals';
import { Test, TestingModule } from '@nestjs/testing';
import { AppController } from './app.controller';
import { AppService } from './app.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, it, beforeEach, afterEach } from '@jest/globals';
import { INestApplication } from '@nestjs/common';
import request from 'supertest';
import { App } from 'supertest/types';
Expand Down
1 change: 1 addition & 0 deletions src/lib/class/class.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { ClassOptions } from './class.schema';
import { describe, expect, it } from '@jest/globals';

describe('Class Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
1 change: 1 addition & 0 deletions src/lib/class/files/ts/__name__.__specFileSuffix__.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import { <%= classify(className) %> } from './<%= name %>';

describe('<%= classify(className) %>', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/configuration/configuration.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { ConfigurationOptions } from './configuration.schema';
import { describe, expect, it } from '@jest/globals';

describe('Configuration Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
1 change: 1 addition & 0 deletions src/lib/controller/controller.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as path from 'path';
import { ApplicationOptions } from '../application/application.schema';
import { ModuleOptions } from '../module/module.schema';
import { ControllerOptions } from './controller.schema';
import { describe, expect, it } from '@jest/globals';

describe('Controller Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { <%= classify(name) %>Controller } from './<%= name %>.controller';

describe('<%= classify(name) %>Controller', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/decorator/decorator.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { DecoratorOptions } from './decorator.schema';
import { describe, expect, it } from '@jest/globals';

describe('Decorator Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import { <%= classify(name) %>Filter } from './<%= name %>.filter';

describe('<%= classify(name) %>Filter', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/filter/filter.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { FilterOptions } from './filter.schema';
import { describe, expect, it } from '@jest/globals';

describe('Filter Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach} from '@jest/globals';
import { <%= classify(name) %>Gateway } from './<%= name %>.gateway';

describe('<%= classify(name) %>Gateway', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/gateway/gateway.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { GatewayOptions } from './gateway.schema';
import { describe, expect, it } from '@jest/globals';

describe('Gateway Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import { <%= classify(name) %>Guard } from './<%= name %>.guard';

describe('<%= classify(name) %>Guard', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/guard/guard.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { GuardOptions } from './guard.schema';
import { describe, expect, it } from '@jest/globals';

describe('Guard Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@

import { describe, expect, it } from '@jest/globals';
import { <%= classify(name) %>Interceptor } from './<%= name %>.interceptor';

describe('<%= classify(name) %>Interceptor', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/interceptor/interceptor.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { InterceptorOptions } from './interceptor.schema';
import { describe, expect, it } from '@jest/globals';

describe('Interceptor Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
1 change: 1 addition & 0 deletions src/lib/interface/interface.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { InterfaceOptions } from './interface.schema';
import { describe, expect, it } from '@jest/globals';

describe('Interface Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
1 change: 1 addition & 0 deletions src/lib/library/files/ts/src/__name__.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach} from '@jest/globals';
import { <%= classify(name) %>Service } from './<%= name %>.service';

describe('<%= classify(name) %>Service', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/library/library.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { LibraryOptions } from './library.schema';
import { describe, expect, it } from '@jest/globals';

describe('Library Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import { <%= classify(name) %>Middleware } from './<%= name %>.middleware';

describe('<%= classify(name) %>Middleware', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/middleware/middleware.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { MiddlewareOptions } from './middleware.schema';
import { describe, expect, it } from '@jest/globals';

describe('Middleware Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
1 change: 1 addition & 0 deletions src/lib/module/module.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
import * as path from 'path';
import { ApplicationOptions } from '../application/application.schema';
import { ModuleOptions } from './module.schema';
import { describe, expect, it } from '@jest/globals';

describe('Module Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
1 change: 1 addition & 0 deletions src/lib/pipe/files/ts/__name__.pipe.__specFileSuffix__.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { describe, expect, it } from '@jest/globals';
import { <%= classify(name) %>Pipe } from './<%= name %>.pipe';

describe('<%= classify(name) %>Pipe', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/pipe/pipe.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { PipeOptions } from './pipe.schema';
import { describe, expect, it } from '@jest/globals';

describe('Pipe Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
1 change: 1 addition & 0 deletions src/lib/provider/files/ts/__name__.__specFileSuffix__.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { <%= classify(className) %> } from './<%= name %>';

describe('<%= classify(className) %>', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/provider/provider.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as path from 'path';
import { ApplicationOptions } from '../application/application.schema';
import { ModuleOptions } from '../module/module.schema';
import { ProviderOptions } from './provider.schema';
import { describe, expect, it } from '@jest/globals';

describe('Provider Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { <%= classify(name) %>Resolver } from './<%= name %>.resolver';

describe('<%= classify(name) %>Resolver', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/resolver/resolver.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { ResolverOptions } from './resolver.schema';
import { describe, expect, it } from '@jest/globals';

describe('Resolver Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { <%= classify(name) %>Controller } from './<%= name %>.controller';
import { <%= classify(name) %>Service } from './<%= name %>.service';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { <%= classify(name) %>Gateway } from './<%= name %>.gateway';
import { <%= classify(name) %>Service } from './<%= name %>.service';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { <%= classify(name) %>Resolver } from './<%= name %>.resolver';
import { <%= classify(name) %>Service } from './<%= name %>.service';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { <%= classify(name) %>Service } from './<%= name %>.service';

describe('<%= classify(name) %>Service', () => {
Expand Down
11 changes: 11 additions & 0 deletions src/lib/resource/resource.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
} from '@angular-devkit/schematics/testing';
import * as path from 'path';
import { ResourceOptions } from './resource.schema';
import { describe, expect, it, beforeAll } from '@jest/globals';

describe('Resource Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down Expand Up @@ -202,6 +203,7 @@ export class UpdateUserDto extends PartialType(CreateUserDto) {}
it('should generate "UsersController" spec file', () => {
expect(tree.readContent('/users/users.controller.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersController } from './users.controller';
import { UsersService } from './users.service';

Expand All @@ -227,6 +229,7 @@ describe('UsersController', () => {
it('should generate "UsersService" spec file', () => {
expect(tree.readContent('/users/users.service.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersService } from './users.service';

describe('UsersService', () => {
Expand Down Expand Up @@ -489,6 +492,7 @@ export class UpdateUserDto extends PartialType(CreateUserDto) {
it('should generate "UsersController" spec file', () => {
expect(tree.readContent('/users/users.controller.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersController } from './users.controller';
import { UsersService } from './users.service';

Expand All @@ -514,6 +518,7 @@ describe('UsersController', () => {
it('should generate "UsersService" spec file', () => {
expect(tree.readContent('/users/users.service.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersService } from './users.service';

describe('UsersService', () => {
Expand Down Expand Up @@ -775,6 +780,7 @@ export class UpdateUserDto extends PartialType(CreateUserDto) {
it('should generate "UsersGateway" spec file', () => {
expect(tree.readContent('/users/users.gateway.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersGateway } from './users.gateway';
import { UsersService } from './users.service';

Expand All @@ -799,6 +805,7 @@ describe('UsersGateway', () => {
it('should generate "UsersService" spec file', () => {
expect(tree.readContent('/users/users.service.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersService } from './users.service';

describe('UsersService', () => {
Expand Down Expand Up @@ -1073,6 +1080,7 @@ export class UpdateUserInput extends PartialType(CreateUserInput) {
it('should generate "UsersResolver" spec file', () => {
expect(tree.readContent('/users/users.resolver.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersResolver } from './users.resolver';
import { UsersService } from './users.service';

Expand All @@ -1097,6 +1105,7 @@ describe('UsersResolver', () => {
it('should generate "UsersService" spec file', () => {
expect(tree.readContent('/users/users.service.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersService } from './users.service';

describe('UsersService', () => {
Expand Down Expand Up @@ -1295,6 +1304,7 @@ export class UpdateUserInput extends PartialType(CreateUserInput) {
it('should generate "UsersResolver" spec file', () => {
expect(tree.readContent('/users/users.resolver.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersResolver } from './users.resolver';
import { UsersService } from './users.service';

Expand All @@ -1319,6 +1329,7 @@ describe('UsersResolver', () => {
it('should generate "UsersService" spec file', () => {
expect(tree.readContent('/users/users.service.spec.ts'))
.toEqual(`import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { UsersService } from './users.service';

describe('UsersService', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { <%= classify(name) %>Service } from './<%= name %>.service';

describe('<%= classify(name) %>Service', () => {
Expand Down
1 change: 1 addition & 0 deletions src/lib/service/service.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as path from 'path';
import { ApplicationOptions } from '../application/application.schema';
import { ModuleOptions } from '../module/module.schema';
import { ServiceOptions } from './service.schema';
import { describe, expect, it } from '@jest/globals';

describe('Service Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, expect, it, beforeEach } from '@jest/globals';
import { <%= classify(name) %>Controller } from './<%= name %>.controller';
import { <%= classify(name) %>Service } from './<%= name %>.service';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Test, TestingModule } from '@nestjs/testing';
import { describe, it, beforeEach } from '@jest/globals';
import { INestApplication } from '@nestjs/common';
import * as request from 'supertest';
import { <%= classify(name)%>Module } from './../src/<%= name %>.module';
Expand Down
1 change: 1 addition & 0 deletions src/lib/sub-app/sub-app.factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
import * as path from 'path';
import { LibraryOptions } from '../library/library.schema';
import { SubAppOptions } from './sub-app.schema';
import { describe, expect, it } from '@jest/globals';

describe('SubApp Factory', () => {
const runner: SchematicTestRunner = new SchematicTestRunner(
Expand Down
Loading