Skip to content

Commit d3150a4

Browse files
committed
test event serialization
1 parent 919fe46 commit d3150a4

File tree

13 files changed

+4451
-310
lines changed

13 files changed

+4451
-310
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: nanasess/setup-chromedriver@master
1919
- uses: actions/setup-node@v2-beta
2020
with:
21-
node-version: "12"
21+
node-version: "14"
2222
- name: Use Latest Python
2323
uses: actions/setup-python@v2
2424
with:
@@ -39,7 +39,7 @@ jobs:
3939
- uses: nanasess/setup-chromedriver@master
4040
- uses: actions/setup-node@v2-beta
4141
with:
42-
node-version: "12"
42+
node-version: "14"
4343
- name: Use Python ${{ matrix.python-version }}
4444
uses: actions/setup-python@v2
4545
with:

noxfile.py

+19
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def test(session: Session) -> None:
8282
test_types(session)
8383
test_style(session)
8484
test_docs(session)
85+
test_js(session)
8586

8687

8788
@nox.session
@@ -134,6 +135,24 @@ def test_docs(session: Session) -> None:
134135
session.run("sphinx-build", "-b", "doctest", "docs/source", "docs/build")
135136

136137

138+
@nox.session
139+
def test_js(session: Session) -> None:
140+
"""Verify that the docs build and that doctests pass"""
141+
app_dir = HERE / "src" / "idom" / "client" / "app"
142+
session.chdir(str(app_dir))
143+
session.run("npm", "install", external=True)
144+
for package_dir in (app_dir / "packages").glob("*"):
145+
session.run(
146+
"npm",
147+
"--prefix",
148+
str(package_dir.relative_to(app_dir)),
149+
"run",
150+
"test",
151+
external=True,
152+
)
153+
session.chdir(str(HERE))
154+
155+
137156
@nox.session
138157
def commits_since_last_tag(session: Session) -> None:
139158
"""A basic script for outputing changelog info"""

package-lock.json

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)