Skip to content

Commit

Permalink
Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tfukaza committed Jul 18, 2024
1 parent 2c5659a commit 6153998
Show file tree
Hide file tree
Showing 10 changed files with 614 additions and 22 deletions.
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@

A minimal no-dependency library for making node based UIs.
A minimal, un-opinionated, extensible library for making interactive UIs.

## Development

Install all dependencies:

```
npm run install
npm run install
```

Test the library in a vanilla Js website:

```
npm run dev-vanilla
```
```

Test the library in a React website:

```
npm run dev-react
```

```

## Testing

Run end-to-end tests:

```
npm run test:e2e
```

Run unit tests:

```
npm run test:ut
```
1 change: 0 additions & 1 deletion demo/react/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export default defineConfig(({ command, mode }) => {
port: 3002,
open: false,
strictPort: true,

preTransformRequests: false,
},
};
Expand Down
2 changes: 1 addition & 1 deletion demo/vanilla/demo.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SnapLine from "./lib/snapline.mjs";

const sl = new SnapLine("node-editor");
const sl = new SnapLine();

let addNodeMenu = null;

Expand Down
Loading

0 comments on commit 6153998

Please sign in to comment.