|
@@ -155,10 +155,13 @@ cd tests/test-notebook
|
|
jlpm test
|
|
jlpm test
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+Note: We are in the process of changing our test suite over to use `jest`. For folders
|
|
|
|
+that have a `jest.conf.js` file, please see the `jest` specific instructions below.
|
|
|
|
+
|
|
You can also select specific test file(s) to run using a pattern:
|
|
You can also select specific test file(s) to run using a pattern:
|
|
|
|
|
|
```bash
|
|
```bash
|
|
-cd tests/test-console
|
|
|
|
|
|
+cd tests/test-notebook
|
|
jlpm test --pattern=src/*.spec.ts
|
|
jlpm test --pattern=src/*.spec.ts
|
|
jlpm test --pattern=src/history.spec.ts
|
|
jlpm test --pattern=src/history.spec.ts
|
|
```
|
|
```
|
|
@@ -186,6 +189,13 @@ command, where `<package-directory-name>` is the name of the folder in
|
|
jlpm create:test <package-directory-name>
|
|
jlpm create:test <package-directory-name>
|
|
```
|
|
```
|
|
|
|
|
|
|
|
+#### Running Jest Tests
|
|
|
|
+
|
|
|
|
+For those test folders that use `jest`, they can be run as `jlpm test` to run the files
|
|
|
|
+directly. You can also use `jlpm test --namePattern=<regex>` to specify specific test
|
|
|
|
+suite names, and `jlpm test --pathPattern=<regex>` to specify specific test module names. In order to watch the code, add a `debugger` line in your code and run `jlpm watch`. This will start a node V8 debugger, which can be debugged
|
|
|
|
+in Chrome by browsing to `chrome://inspect/` and launching the remote session.
|
|
|
|
+
|
|
### Build and run the stand-alone examples
|
|
### Build and run the stand-alone examples
|
|
|
|
|
|
To install and build the examples in the `examples` directory:
|
|
To install and build the examples in the `examples` directory:
|