Skip to content

Commit 5a4a5d3

Browse files
committed
add documentation test, remove log
1 parent 016fd5a commit 5a4a5d3

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ https://user-images.githubusercontent.com/6118824/228208185-be5aefd4-7fa8-4f95-a
3232
- [Introduction](#introduction)
3333
- [Table of Contents](#table-of-contents)
3434
- [Installation](#installation)
35+
- [Test](#test)
3536
- [Usage](#usage)
3637
- [For Vue 3](#for-vue-3)
3738
- [For Nuxt 3](#for-nuxt-3)
@@ -74,6 +75,33 @@ or
7475
yarn add vue-sonner
7576
```
7677

78+
## Test
79+
80+
To run the test you need two separate CLI window :
81+
82+
### Launching the test
83+
84+
To launch the test, you need to go in the test directory
85+
86+
```bash
87+
cd ./test
88+
```
89+
90+
and launch the following command
91+
92+
```bash
93+
cd ./test
94+
pnpm test:e2e --ui
95+
```
96+
97+
### Build and watch for change in order to fix the test
98+
99+
This command will build the vue-sonner library in lib mode, and add a watch so every time you modify the code of the library, you will have a new bundle and can run the test again.
100+
101+
```bash
102+
pnpm build:dev
103+
```
104+
77105
## Usage
78106

79107
### For Vue 3

packages/Toaster.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ function removeToast(toastToRemove: ToastT) {
239239
}
240240
241241
function onBlur(event: FocusEvent | any) {
242-
console.log('event', event)
243242
if (
244243
isFocusWithinRef.value &&
245244
!event.currentTarget?.contains?.(event.relatedTarget)

0 commit comments

Comments
 (0)