We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c874b5 commit f86df48Copy full SHA for f86df48
resources/js/example.spec.ts
@@ -0,0 +1,19 @@
1
+import { describe, expect, it } from 'vitest';
2
+
3
+describe('Example Test Suite', () => {
4
+ it('should pass a basic assertion', () => {
5
+ expect(1 + 1).toBe(2);
6
+ });
7
8
+ it('should work with arrays', () => {
9
+ const items = ['apple', 'banana', 'cherry'];
10
+ expect(items).toHaveLength(3);
11
+ expect(items).toContain('banana');
12
13
14
+ it('should work with objects', () => {
15
+ const user = { name: 'John', age: 30 };
16
+ expect(user).toHaveProperty('name');
17
+ expect(user.name).toBe('John');
18
19
+});
0 commit comments