Skip to content

Commit 06f526a

Browse files
committed
refactor: wip
1 parent bb3eadd commit 06f526a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tools/zod2md-jsdocs/src/lib/generators/configuration/zod2md-config.unit.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ describe('generateZod2MdConfig options', () => {
4444

4545
it('should call generateFilesSpy', () => {
4646
generateZod2MdConfig(tree, testProjectName);
47-
expect(generateFilesSpy).toHaveBeenCalledTimes(1);
47+
expect(generateFilesSpy).toHaveBeenCalledOnce();
4848
});
4949

5050
it('should skip creation if config already exists', () => {
5151
tree.write(path.join(testProjectName, 'zod2md.config.js'), '');
5252
generateZod2MdConfig(tree, testProjectName);
5353
expect(generateFilesSpy).toHaveBeenCalledTimes(0);
54-
expect(loggerWarnSpy).toHaveBeenCalledTimes(1);
54+
expect(loggerWarnSpy).toHaveBeenCalledOnce();
5555
expect(loggerWarnSpy).toHaveBeenCalledWith(
5656
stripAnsi(
5757
'No config file created as zod2md.config.js file already exists.',

tools/zod2md-jsdocs/src/lib/generators/sync-zod2md-setup/sync-zod2md-setup.unit.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ describe('sync-zod2md-setup generator', () => {
7676
await expect(syncZod2mdSetupGenerator(tree)).resolves.toStrictEqual({
7777
outOfSyncMessage: undefined,
7878
});
79-
expect(tree.exists(zod2mdConfigPath)).toBe(false);
79+
expect(tree.exists(zod2mdConfigPath)).toBeFalse();
8080
});
8181

8282
it('should fail if missing tsconfig file', async () => {
@@ -88,7 +88,7 @@ describe('sync-zod2md-setup generator', () => {
8888
- ${projectRoot}`,
8989
),
9090
});
91-
expect(tree.exists(`${projectRoot}/zod2md.config.ts`)).toBe(true);
91+
expect(tree.exists(`${projectRoot}/zod2md.config.ts`)).toBeTrue();
9292
});
9393

9494
it('should fail if missing "zod2md" target in project config', async () => {
@@ -111,7 +111,7 @@ describe('sync-zod2md-setup generator', () => {
111111
- ${projectRoot}`,
112112
),
113113
});
114-
expect(tree.exists(`${projectRoot}/zod2md.config.ts`)).toBe(true);
114+
expect(tree.exists(`${projectRoot}/zod2md.config.ts`)).toBeTrue();
115115
});
116116

117117
it('should fail if missing "dependsOn" targets in build target', async () => {
@@ -131,7 +131,7 @@ describe('sync-zod2md-setup generator', () => {
131131
- libs/test: generate-docs, ts-patch`,
132132
),
133133
});
134-
expect(tree.exists(`${projectRoot}/zod2md.config.ts`)).toBe(true);
134+
expect(tree.exists(`${projectRoot}/zod2md.config.ts`)).toBeTrue();
135135
});
136136

137137
it('should pass if zod2md setup is correct', async () => {

0 commit comments

Comments
 (0)