You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> ⚠️ This is a **beta release** – expect frequent updates and possible breaking changes.
8
10
9
-
TWD (Testing Web Development) is a tool designed to help integrating testing while developing web applications. It aims to streamline the testing process and make it easier for developers to write and run tests as they build their applications.
10
11
11
-
Right now we only support React, but we plan to add support for other frameworks in the future.
12
+
TWD (Testing Web Development) is a library designed to seamlessly integrate testing into your web development workflow. It streamlines the process of writing, running, and managing tests directly in your application, with a modern UI and powerful mocking capabilities.
13
+
14
+
Currently, TWD supports React, with plans to add more frameworks soon.
15
+
16
+
---
17
+
18
+
## Features
19
+
20
+
- 🧪 **In-browser test runner** with a beautiful sidebar UI
21
+
- ⚡ **Instant feedback** as you develop
22
+
- 🔥 **Mock Service Worker** integration for API/request mocking
23
+
- 📝 **Simple, readable test syntax** (inspired by popular test frameworks)
24
+
- 🧩 **Automatic test discovery** with Vite support
25
+
- 🛠️ **Works with React** (support for more frameworks coming)
12
26
13
27
## Installation
14
28
@@ -25,74 +39,118 @@ yarn add twd-js
25
39
pnpm add twd-js
26
40
```
27
41
28
-
## How to use
29
42
30
-
Add the our React Sidebar component to your application:
After you create your test you need to load them in your application. You can do this by creating a `loadTests.ts` file and importing all your test files there:
62
+
2.**Write your tests:**
72
63
73
-
```ts
74
-
// src/loadTests.ts
75
-
import"./app.twd.test";
76
-
import"./another-test-file.twd.test";
77
-
// Import other test files here
78
-
```
64
+
Create files ending with `.twd.test.ts` (or any extension you prefer):
0 commit comments