Skip to content

Commit

Permalink
Merge pull request #44 from Kleostro/fix/tu-01-37/ng-zorro-modules-tests
Browse files Browse the repository at this point in the history
fix(tu-01-37): ng zorro module tests
  • Loading branch information
stardustmeg authored Aug 16, 2024
2 parents 371b81a + 93e73e3 commit c7ef108
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const config: Config = {
testEnvironment: 'jsdom',
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
'^ng-zorro-antd/(.*)$': '<rootDir>/src/__mocks__/ng-zorro-antd-mock.ts',
},
testPathIgnorePatterns: ['<rootDir>/dist/', 'dist'],
};
Expand Down
12 changes: 12 additions & 0 deletions src/__mocks__/ng-zorro-antd-mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';

@NgModule({
exports: [],
imports: [],
declarations: [],
providers: [],
})
export class NzButtonModule {
public static ɵmod = { type: NzButtonModule };
public static ɵinj = { factory: (): NzButtonModule => new NzButtonModule() };
}

0 comments on commit c7ef108

Please sign in to comment.