File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1+ import { NoTransformerError } from './errors/no-transformer.error' ;
12import { DeepPartial } from './partial/deepPartial' ;
23
34// eslint-disable-next-line @typescript-eslint/no-unused-vars
45export function createMockList < T extends object > ( quantity : number , iterator ?: ( index : number ) => DeepPartial < T > ) : T [ ] {
5- throw new Error ( `
6- ts-auto-mock is not been configured as a transformer. Please follow the instructions in https://typescript-tdd.github.io/ts-auto-mock/installation
7- If help is required you can find us on https://typescript-tdd.github.io
8- ` ) ;
6+ throw new Error ( NoTransformerError ) ;
97}
Original file line number Diff line number Diff line change 1+ import { NoTransformerError } from './errors/no-transformer.error' ;
12import { DeepPartial } from './partial/deepPartial' ;
23
34// eslint-disable-next-line @typescript-eslint/no-unused-vars
45export function createMock < T extends object > ( values ?: DeepPartial < T > ) : T {
5- throw new Error ( `
6- ts-auto-mock is not been configured as a transformer. Please follow the instructions in https://typescript-tdd.github.io/ts-auto-mock/installation
7- If help is required you can find us on https://typescript-tdd.github.io
8- ` ) ;
6+ throw new Error ( NoTransformerError ) ;
97}
Original file line number Diff line number Diff line change 1+ export const NoTransformerError : string = `
2+ hey, it looks like ts-auto-mock is not configured correctly! You can find the instructions here https://typescript-tdd.github.io/ts-auto-mock/installation.
3+ If you need further assistance feel free to drop a message on slack. (link at the bottom of https://typescript-tdd.github.io/ts-auto-mock)
4+ ` ;
Original file line number Diff line number Diff line change 1+ import { NoTransformerError } from './errors/no-transformer.error' ;
2+
13// eslint-disable-next-line @typescript-eslint/no-unused-vars
24export function registerMock < T extends object > ( factory : ( ) => T ) : void {
3- throw new Error ( `
4- ts-auto-mock is not been configured as a transformer. Please follow the instructions in https://typescript-tdd.github.io/ts-auto-mock/installation
5- If help is required you can find us on https://typescript-tdd.github.io
6- ` ) ;
5+ throw new Error ( NoTransformerError ) ;
76}
You can’t perform that action at this time.
0 commit comments