Skip to content

Commit 378604a

Browse files
committed
refactor: update test command in package.json, add Lato-Regular font and grayscale note block image to thumbnail assets, and clean up utils.spec.ts by removing mock canvasFactory
1 parent 082bfe9 commit 378604a

File tree

4 files changed

+1
-16
lines changed

4 files changed

+1
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"lint:sounds": "cd ./packages/sounds && bun run lint",
5151
"lint:thumbnail": "cd ./packages/thumbnail && bun run lint",
5252
"lint:components": "cd ./packages/components && bun run lint",
53-
"test": "bun test **/*.spec.ts --coverage",
53+
"test": "cd ./apps/backend && bun test",
5454
"cy:open": "bun run test:cy",
5555
"test:cy": "cd ./tests && bun run cy:open",
5656
"prettier": "prettier --write .",
642 KB
Binary file not shown.
336 Bytes
Loading

packages/thumbnail/src/utils.spec.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
import { getKeyText, instrumentColors, isDarkColor } from './utils';
22

3-
// Mock canvasFactory
4-
jest.mock('./canvasFactory', () => ({
5-
createCanvas: jest.fn().mockImplementation((width, height) => ({
6-
width,
7-
height,
8-
getContext: jest.fn().mockReturnValue({
9-
fillStyle: '',
10-
fillRect: jest.fn(),
11-
globalCompositeOperation: '',
12-
globalAlpha: 0,
13-
drawImage: jest.fn(),
14-
}),
15-
})),
16-
}));
17-
183
describe('instrumentColors', () => {
194
it('should contain 16 color codes', () => {
205
expect(instrumentColors).toHaveLength(16);

0 commit comments

Comments
 (0)