Skip to content

Vitest custom matcher displaying error messages in Koume Dayu's comedy style: "〜かと思ったら〜でした〜チクショー!!"

Notifications You must be signed in to change notification settings

ygkn/test-like-koume-dayu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koume Dayu Style Error Messages

Implementation example of Vitest custom matcher displaying error messages in Koume Dayu's comedy style: "〜かと思ったら〜でした〜チクショー!!" (meaning "I thought it was ~, but it turned out to be ~. Damn it!!")

Setup

git clone https://github.com/yourusername/test-like-koume-dayu.git
cd test-like-koume-dayu
npm install

Usage

$ npm run test

...

 FAIL  koume.test.ts > toBe
Error: expect(received).toBe(expected)

チャンチャカチャンチャンチャンチャンチャンチャン
チャンチャカチャンチャンチャンチャンチャンチャン

2 かと思ったら~、

1 でした~。

チクショー!!

 ❯ koume.test.ts:4:13
      2|
      3| test("toBe", () => {
      4|   expect(1).toBe(2);
       |             ^
      5| });
      6|

...

License

MIT

About

Vitest custom matcher displaying error messages in Koume Dayu's comedy style: "〜かと思ったら〜でした〜チクショー!!"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published