kempo-testing-framework 1.2.3 → 1.2.4

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.
@@ -7,7 +7,7 @@
7
7
 
8
8
  ### GUI
9
9
 
10
- All files served by the GUI should be in the `gui/` directory, with the exception of scripts shared with the CLI, custom endpoints, and node_modules like essential.css (which should have custom endpoints).
10
+ All files served by the GUI should be in the `gui/` directory, with the exception of scripts shared with the CLI, custom endpoints, and node_modules like kempo.css (which should have custom endpoints).
11
11
 
12
12
  ## Coding Style Guidelines
13
13
 
package/CONTRIBUTING.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  ### GUI
9
9
 
10
- All files served by the GUI should be in the `gui/` directory, with the exception of scripts shared with the CLI, custom endpoints, and node_modules like essential.css (which should have custom endpoints).
10
+ All files served by the GUI should be in the `gui/` directory, with the exception of scripts shared with the CLI, custom endpoints, and node_modules like kempo.css (which should have custom endpoints).
11
11
 
12
12
  ## Coding Style Guidelines
13
13
 
@@ -28,7 +28,7 @@ window.customElements.define('ktf-collapsible', class extends LitElement {
28
28
  */
29
29
  render(){
30
30
  return html`
31
- <link rel="stylesheet" href="/essential.css">
31
+ <link rel="stylesheet" href="/kempo.css">
32
32
  <div class="header">
33
33
  <div class="actions">
34
34
  <slot name="actions"></slot>
@@ -54,7 +54,7 @@ window.customElements.define('ktf-logs', class extends LitElement {
54
54
  });
55
55
  if (!filtered.length) return html``;
56
56
  return html`
57
- <link rel="stylesheet" href="/essential.css">
57
+ <link rel="stylesheet" href="/kempo.css">
58
58
  <ktf-collapsible opened>
59
59
  <span slot="title"><ktf-icon name="logs"></ktf-icon> Logs</span>
60
60
  <pre class="bg-alt -mx -mt p mb0 rb">${filtered.map(l => html`<div class="${l?.type || 'log'}">${l?.message ?? ''}</div>`)}</pre>
@@ -46,7 +46,7 @@ window.customElements.define('ktf-test', class extends LitElement {
46
46
  render(){
47
47
  if(!this.file || !this.name) return html``;
48
48
  return html`
49
- <link rel="stylesheet" href="/essential.css">
49
+ <link rel="stylesheet" href="/kempo.css">
50
50
  <ktf-collapsible>
51
51
  <span slot="title" id="title" class="-ml">
52
52
  ${this.name}
@@ -136,7 +136,7 @@ class TestSuiteEl extends LitElement {
136
136
  if(!this.file || !this.testNames.length) return html``;
137
137
  const titleText = this.file.replace('tests/', '').replace('.node-test.js', '').replace('.browser-test.js', '').replace('.test.js', '');
138
138
  return html`
139
- <link rel="stylesheet" href="/essential.css">
139
+ <link rel="stylesheet" href="/kempo.css">
140
140
  <ktf-collapsible>
141
141
  <span slot="title" id="title" class="-ml">${titleText}</span>
142
142
  <div slot="actions">
@@ -126,7 +126,7 @@ window.customElements.define('ktf-test-summary', class extends LitElement {
126
126
  const f = this.fileCounts;
127
127
  const t = this.testCounts;
128
128
  return html`
129
- <link rel="stylesheet" href="/essential.css">
129
+ <link rel="stylesheet" href="/kempo.css">
130
130
  <ktf-collapsible opened>
131
131
  <span slot="title" class="-ml"><b>Test Summary</b></span>
132
132
  <div slot="actions">
package/gui/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Kempo Testing Library GUI</title>
7
- <link rel="stylesheet" href="/essential.css" />
7
+ <link rel="stylesheet" href="/kempo.css" />
8
8
  <style>
9
9
  .loading-state {
10
10
  padding: 1rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kempo-testing-framework",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
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": {
@@ -15,7 +15,7 @@
15
15
  "license": "ISC",
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "essentialcss": "^3.0.0",
18
+ "kempo-css": "^1.0.2",
19
19
  "puppeteer": "^24.9.0"
20
20
  }
21
21
  }
@@ -27,15 +27,15 @@ export const startServer = async (_port = 3000) => {
27
27
  const filePath = path.join(__dirname, 'runTests.js');
28
28
  res.end(await readFile(filePath, 'utf8'));
29
29
  }
30
- // Serve essential.css like the GUI server does
31
- else if (basePath === '/essential.css') {
30
+ // Serve kempo.css like the GUI server does
31
+ else if (basePath === '/kempo.css') {
32
32
  try {
33
- const cssPath = path.join(__dirname, '../node_modules/essentialcss/dist/essential.min.css');
33
+ const cssPath = path.join(__dirname, '../node_modules/kempo-css/dist/kempo.min.css');
34
34
  const css = await readFile(cssPath, 'utf8');
35
35
  res.writeHead(200, { 'Content-Type': 'text/css' });
36
36
  res.end(css);
37
37
  } catch (error) {
38
- console.error(`Error serving essential.css:`, error);
38
+ console.error(`Error serving kempo.css:`, error);
39
39
  res.writeHead(404);
40
40
  res.end('Not found');
41
41
  }
package/src/gui.js CHANGED
@@ -19,11 +19,11 @@ export default async (flags, args) => {
19
19
  */
20
20
 
21
21
  /*
22
- Serve essential.css
22
+ Serve kempo.css
23
23
  */
24
- if(basePath === '/essential.css'){
24
+ if(basePath === '/kempo.css'){
25
25
  res.writeHead(200, { 'Content-Type': 'text/css' });
26
- res.end(await readFile(path.join(__dirname, '../node_modules/essentialcss/dist/essential.min.css'), 'utf8'));
26
+ res.end(await readFile(path.join(__dirname, '../node_modules/kempo-css/dist/kempo.min.css'), 'utf8'));
27
27
  }
28
28
 
29
29
  /*