kempo-testing-framework 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: Publish Major Version to npmjs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
publish:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
id-token: write # enables npm provenance
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
with:
|
|
15
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
16
|
+
|
|
17
|
+
# Setup Node and create an .npmrc that uses the token from NODE_AUTH_TOKEN
|
|
18
|
+
- uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: '20.x'
|
|
21
|
+
registry-url: 'https://registry.npmjs.org'
|
|
22
|
+
|
|
23
|
+
- run: npm ci
|
|
24
|
+
|
|
25
|
+
# Auto-increment major version, commit, and push
|
|
26
|
+
- name: Bump major version
|
|
27
|
+
run: |
|
|
28
|
+
git config --global user.name "github-actions"
|
|
29
|
+
git config --global user.email "github-actions@github.com"
|
|
30
|
+
npm version major --no-git-tag-version
|
|
31
|
+
git add package.json package-lock.json || true
|
|
32
|
+
git commit -m "ci: bump major version [skip ci]" || echo "No changes to commit"
|
|
33
|
+
git push origin HEAD:main || echo "No changes to push"
|
|
34
|
+
env:
|
|
35
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
36
|
+
|
|
37
|
+
- run: npm publish --provenance --access public
|
|
38
|
+
env:
|
|
39
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: Publish Minor Version to npmjs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
publish:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
id-token: write # enables npm provenance
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
with:
|
|
15
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
16
|
+
|
|
17
|
+
# Setup Node and create an .npmrc that uses the token from NODE_AUTH_TOKEN
|
|
18
|
+
- uses: actions/setup-node@v4
|
|
19
|
+
with:
|
|
20
|
+
node-version: '20.x'
|
|
21
|
+
registry-url: 'https://registry.npmjs.org'
|
|
22
|
+
|
|
23
|
+
- run: npm ci
|
|
24
|
+
|
|
25
|
+
# Auto-increment minor version, commit, and push
|
|
26
|
+
- name: Bump minor version
|
|
27
|
+
run: |
|
|
28
|
+
git config --global user.name "github-actions"
|
|
29
|
+
git config --global user.email "github-actions@github.com"
|
|
30
|
+
npm version minor --no-git-tag-version
|
|
31
|
+
git add package.json package-lock.json || true
|
|
32
|
+
git commit -m "ci: bump minor version [skip ci]" || echo "No changes to commit"
|
|
33
|
+
git push origin HEAD:main || echo "No changes to push"
|
|
34
|
+
env:
|
|
35
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
36
|
+
|
|
37
|
+
- run: npm publish --provenance --access public
|
|
38
|
+
env:
|
|
39
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/gui/index.html
CHANGED
|
@@ -5,29 +5,6 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Kempo Testing Library GUI</title>
|
|
7
7
|
<link rel="stylesheet" href="/kempo.css" />
|
|
8
|
-
<style>
|
|
9
|
-
.loading-state {
|
|
10
|
-
padding: 1rem;
|
|
11
|
-
text-align: center;
|
|
12
|
-
color: #666;
|
|
13
|
-
font-style: italic;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.empty-state {
|
|
17
|
-
padding: 1rem;
|
|
18
|
-
color: #888;
|
|
19
|
-
background-color: #f5f5f5;
|
|
20
|
-
border-radius: 4px;
|
|
21
|
-
margin: 0.5rem 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.empty-state code {
|
|
25
|
-
background-color: #e8e8e8;
|
|
26
|
-
padding: 0.2rem 0.4rem;
|
|
27
|
-
border-radius: 3px;
|
|
28
|
-
font-family: monospace;
|
|
29
|
-
}
|
|
30
|
-
</style>
|
|
31
8
|
</head>
|
|
32
9
|
<body>
|
|
33
10
|
<main>
|
|
@@ -52,20 +29,20 @@
|
|
|
52
29
|
<div id="universalTestsContainer">
|
|
53
30
|
<h2>Universal Tests</h2>
|
|
54
31
|
<p>Tests that run in both Node and Browser environments</p>
|
|
55
|
-
<div id="universalTestsLoading" class="
|
|
56
|
-
<div id="universalTestsEmpty" class="
|
|
32
|
+
<div id="universalTestsLoading" class="p ta-center tc-muted" style="font-style: italic;">Loading universal tests...</div>
|
|
33
|
+
<div id="universalTestsEmpty" class="p bg-alt r my" style="display: none;">No universal tests found. Create test files with <code>.test.js</code> extension to run tests in both environments.</div>
|
|
57
34
|
<div id="universalTests"></div>
|
|
58
35
|
</div>
|
|
59
36
|
<div id="nodeTestsContainer">
|
|
60
37
|
<h2>Node Tests</h2>
|
|
61
|
-
<div id="nodeTestsLoading" class="
|
|
62
|
-
<div id="nodeTestsEmpty" class="
|
|
38
|
+
<div id="nodeTestsLoading" class="p ta-center tc-muted" style="font-style: italic;">Loading Node tests...</div>
|
|
39
|
+
<div id="nodeTestsEmpty" class="p bg-alt r my" style="display: none;">No Node-only tests found. Create test files with <code>.node-test.js</code> extension to run tests only in Node.</div>
|
|
63
40
|
<div id="nodeTests"></div>
|
|
64
41
|
</div>
|
|
65
42
|
<div id="browserTestsContainer">
|
|
66
43
|
<h2>Browser Tests</h2>
|
|
67
|
-
<div id="browserTestsLoading" class="
|
|
68
|
-
<div id="browserTestsEmpty" class="
|
|
44
|
+
<div id="browserTestsLoading" class="p ta-center tc-muted" style="font-style: italic;">Loading browser tests...</div>
|
|
45
|
+
<div id="browserTestsEmpty" class="p bg-alt r my" style="display: none;">No browser-only tests found. Create test files with <code>.browser-test.js</code> extension to run tests only in the browser.</div>
|
|
69
46
|
<div id="browserTests"></div>
|
|
70
47
|
</div>
|
|
71
48
|
</ktf-test-framework>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kempo-testing-framework",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "The Kempo Testing Framework is a simple testing framework built on the principle that code intended to be ran in the browser should be tested in the browser, code intended to be ran in Node should be tested in Node, and code intended to be ran in both should be tested in both. No mocking, no complexity—just testing.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|