Skip to content
Merged

Dev #12

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
2 changes: 1 addition & 1 deletion apps/api/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
rootDir: 'src',
testRegex: '.*\\.spec\\.ts$',
transform: {
'^.+\\.(t|j)s$': ['ts-jest', { isolatedModules: true }],
'^.+\\.(t|j)s$': 'ts-jest',
},
collectCoverageFrom: ['**/*.(t|j)s'],
coverageDirectory: '../coverage',
Expand Down
1 change: 1 addition & 0 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"postinstall": "prisma generate",
"build": "nest build",
"dev": "nest start --watch",
"start": "node dist/main",
Expand Down
2 changes: 2 additions & 0 deletions apps/api/src/prompts/diff.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { DiffService } from './diff.service';

jest.mock('../prisma/prisma.service');

describe('DiffService', () => {
const mockPrisma = {} as any;

Check warning on line 6 in apps/api/src/prompts/diff.service.spec.ts

View workflow job for this annotation

GitHub Actions / Lint & Type Check

Unexpected any. Specify a different type

Check warning on line 6 in apps/api/src/prompts/diff.service.spec.ts

View workflow job for this annotation

GitHub Actions / Lint & Type Check

Unexpected any. Specify a different type
const service = new DiffService(mockPrisma);

it('identical content → all equal', () => {
Expand Down
Loading
Loading