Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
node_modules

# XTest coverage files
coverage

# Claude Code local settings
.claude/*.local.json

Expand Down
101 changes: 23 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"build-react": "npm run build-react-demo && npm run build-react-performance",
"build-react-demo": "esbuild demo/react/index.jsx --bundle --format=esm --jsx=automatic --packages=external --external:../* --outfile=demo/react/index.js",
"build-react-performance": "esbuild performance/react/index.jsx --bundle --format=esm --jsx=automatic --packages=external --external:../* --outfile=performance/react/index.js",
"test": "x-test --client=puppeteer --url=http://127.0.0.1:8080/test/ --coverage=true",
"test": "x-test",
"type": "tsc",
"performance": "node ./performance.js",
"bump": "./bump.sh"
Expand All @@ -43,14 +43,15 @@
"/x-element.js",
"/x-parser.js",
"/x-template.js",
"/x-test.config.js",
"/demo",
"/test",
"/types"
],
"devDependencies": {
"@netflix/eslint-config": "3.0.0",
"@netflix/x-test": "2.0.0-rc.6",
"@netflix/x-test-cli": "1.0.0-rc.2",
"@netflix/x-test": "2.0.0",
"@netflix/x-test-cli": "1.0.0",
"esbuild": "0.27.4",
"eslint": "10.1.0",
"eslint-plugin-jsdoc": "62.8.0",
Expand Down
52 changes: 21 additions & 31 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
import { test, coverage } from '@netflix/x-test/x-test.js';
import { load } from '@netflix/x-test/x-test.js';
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Top-level test renamed to load.


// We import these here so we can see code coverage.
import '../x-element.js';
import '../x-parser.js';
import '../x-template.js';

// Set a high bar for code coverage!
coverage(new URL('../x-element.js', import.meta.url).href, 100);
coverage(new URL('../x-parser.js', import.meta.url).href, 100);
coverage(new URL('../x-template.js', import.meta.url).href, 100);
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

☝️ — All coverage stuff is moved to the CLI.


test('./test-parser.html');
test('./test-template-engine.html');
test('./test-analysis-errors.html');
test('./test-initialization-errors.html');
test('./test-attribute-changed-errors.html');
test('./test-element-upgrade.html');
test('./test-render.html');
test('./test-render-root.html');
test('./test-styles.html');
test('./test-basic-properties.html');
test('./test-initial-properties.html');
test('./test-default-properties.html');
test('./test-read-only-properties.html');
test('./test-internal-properties.html');
test('./test-reflected-properties.html');
test('./test-computed-properties.html');
test('./test-observed-properties.html');
test('./test-listeners.html');
test('./test-property-deletion.html');
test('./test-scratch.html');
load('./test-parser.html');
load('./test-template-engine.html');
load('./test-analysis-errors.html');
load('./test-initialization-errors.html');
load('./test-attribute-changed-errors.html');
load('./test-element-upgrade.html');
load('./test-render.html');
load('./test-render-root.html');
load('./test-styles.html');
load('./test-basic-properties.html');
load('./test-initial-properties.html');
load('./test-default-properties.html');
load('./test-read-only-properties.html');
load('./test-internal-properties.html');
load('./test-reflected-properties.html');
load('./test-computed-properties.html');
load('./test-observed-properties.html');
load('./test-listeners.html');
load('./test-property-deletion.html');
load('./test-scratch.html');
Loading