Skip to content

Commit 268bd4b

Browse files
authored
Fix/url mocking (#75)
* fix: documentation * fix: mocking to avoid mock files we do not need to mock * docs: add jsdoc to js sw files * feat: add rules trigerred for moking * feat: add better icon with lucide react * tests: add new icon and component * docs: update mocks in examples
1 parent 17983ab commit 268bd4b

13 files changed

Lines changed: 4115 additions & 62 deletions

File tree

docs/tutorial/ci-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ Congratulations! 🎉 You've completed the TWD tutorial and learned how to:
659659
### What's Next?
660660
661661
- 📖 Explore the [API Reference](/api/) for detailed documentation
662-
- 🔍 Check out [real examples](/examples/) in the examples directory
662+
- 🔍 Check out [our tutorial](/tutorial/) in the examples directory
663663
- 🐛 [Report issues](https://github.com/BRIKEV/twd/issues) if you find bugs
664664
- 💬 [Join discussions](https://github.com/BRIKEV/twd/discussions) to ask questions
665665
- ⭐ [Star the project](https://github.com/BRIKEV/twd) if you find it useful!

examples/tutorial-example/public/mock-sw.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/tutorial-example/src/twd-tests/contacts/contacts.twd.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { twd, expect } from "../../../../../src";
2-
import { describe, it, afterEach } from "../../../../../src/runner";
2+
import { describe, it, beforeEach } from "../../../../../src/runner";
33
import list from "./mocks/list.json";
44

55
describe("Contacts Page", () => {
6-
afterEach(() => {
6+
beforeEach(() => {
77
twd.clearRequestMockRules();
88
});
99

0 commit comments

Comments
 (0)