debuts de tests unitaires
This commit is contained in:
10
src/__tests__/basic.test.ts
Normal file
10
src/__tests__/basic.test.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
describe('Basic Test', () => {
|
||||
it('should work', () => {
|
||||
expect(1 + 1).toBe(2);
|
||||
});
|
||||
|
||||
it('should handle async operations', async () => {
|
||||
const result = await Promise.resolve('test');
|
||||
expect(result).toBe('test');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user