qunitx 0.9.3 → 0.12.0

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.
package/Makefile ADDED
@@ -0,0 +1,26 @@
1
+ .PHONY: check test lint build release
2
+
3
+ check: lint test
4
+
5
+ lint:
6
+ npm run lint
7
+
8
+ test:
9
+ npm test
10
+
11
+ build:
12
+ npm run build
13
+
14
+ # Lint, bump version, update changelog, commit, tag, push, publish to npm.
15
+ # CI then creates the GitHub release.
16
+ # Usage: make release LEVEL=patch|minor|major
17
+ release:
18
+ @test -n "$(LEVEL)" || (echo "Usage: make release LEVEL=patch|minor|major" && exit 1)
19
+ npm run lint
20
+ npm version $(LEVEL) --no-git-tag-version
21
+ npm run changelog:update
22
+ git add package.json package-lock.json CHANGELOG.md
23
+ git commit -m "Release $$(node -p 'require("./package.json").version')"
24
+ git tag "v$$(node -p 'require("./package.json").version')"
25
+ git push && git push --tags
26
+ npm publish --access public
package/README.md CHANGED
@@ -1,9 +1,12 @@
1
1
  ![docker-based-ci](https://github.com/izelnakri/qunitx/workflows/docker-based-ci/badge.svg)
2
2
  [![npm version](https://badge.fury.io/js/qunitx.svg)](https://badge.fury.io/js/qunitx)
3
+ [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/izelnakri/qunitx/issues)
3
4
 
4
5
  # QUnitX
5
6
 
6
- ***Truly universal testing for JavaScript with the oldest, most mature & flexible
7
+ Mature, fast, 0 dependency & flexible test API for JavaScript/TypeScript.
8
+
9
+ ***Universal testing for JavaScript with the oldest, most mature & flexible
7
10
  testing API in the JavaScript ecosystem. Run the same test file in node.js, deno or in the browser***
8
11
 
9
12
  Your test JS/TS file(s) can now run interchangably in different runtimes with
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "qunitx",
3
3
  "type": "module",
4
- "version": "0.9.3",
4
+ "version": "0.12.0",
5
5
  "description": "A universal test framework for testing any js file on node.js, browser or deno with QUnit API",
6
6
  "author": "Izel Nakri",
7
7
  "license": "MIT",
@@ -38,12 +38,13 @@
38
38
  "frontend",
39
39
  "backend",
40
40
  "qunit",
41
+ "qunit-plugin",
41
42
  "node",
42
43
  "deno",
43
44
  "browser"
44
45
  ],
45
46
  "engines": {
46
- "node": ">=20.3.0"
47
+ "node": ">=24.0.0"
47
48
  },
48
49
  "imports": {
49
50
  "qunitx": {
@@ -62,17 +63,16 @@
62
63
  "url": "https://github.com/izelnakri/qunitx.git"
63
64
  },
64
65
  "scripts": {
66
+ "lint": "prettier --check \"test/**/*.js\" \"*.js\" \"package.json\"",
67
+ "lint:fix": "prettier --write \"test/**/*.js\" \"*.js\" \"package.json\"",
65
68
  "build": "node build.js",
66
69
  "run:all": "npm run run:node && npm run run:deno",
67
70
  "run:node": "node --test test/helpers/passing-tests.js && node --test test/helpers/failing-tests.js",
68
71
  "run:deno": "deno test test/helpers/passing-tests.js && deno test test/helpers/failing-tests.js",
69
- "changelog:unreleased": "node_modules/.bin/auto-changelog --stdout --commit-limit false --package --unreleased-only --hide-credit --sort-commits date-desc",
70
- "changelog:preview": "node_modules/.bin/auto-changelog --stdout --commit-limit false --package -u --sort-commits date-desc",
71
- "changelog:update": "node_modules/.bin/auto-changelog --commit-limit false --package --sort-commits date-desc",
72
+ "changelog:unreleased": "git-cliff --unreleased --strip all",
73
+ "changelog:preview": "git-cliff",
74
+ "changelog:update": "git-cliff --output CHANGELOG.md",
72
75
  "prepack": "npm run build",
73
- "release:alpha": "node_modules/.bin/release-it --preRelease=alpha --no-git.requireUpstream",
74
- "release:beta": "node_modules/.bin/release-it --preRelease=beta --no-git.requireUpstream",
75
- "release": "node_modules/.bin/release-it",
76
76
  "test": "npm run test:browser && npm run test:node && npm run test:deno",
77
77
  "test:dev": "npm run test | tee test-output.log",
78
78
  "test:browser": "node_modules/.bin/qunitx test/index.js --debug",
@@ -80,31 +80,17 @@
80
80
  "test:node": "node --test test/index.js"
81
81
  },
82
82
  "devDependencies": {
83
- "auto-changelog": "^2.4.0",
84
- "prettier": "^3.0.0",
85
- "qunit": "^2.19.4",
86
- "qunitx": "^0.9.1",
87
- "qunitx-cli": "^0.1.1",
88
- "release-it": "^16.1.3",
89
- "ts-node": ">=10.7.0"
83
+ "prettier": "^3.8.1",
84
+ "qunit": "^2.25.0",
85
+ "qunitx": "^0.9.3",
86
+ "qunitx-cli": "^0.5.0"
90
87
  },
91
88
  "volta": {
92
- "node": "20.5.0"
89
+ "node": "24.14.0"
93
90
  },
94
91
  "prettier": {
95
92
  "printWidth": 100,
96
93
  "singleQuote": true,
97
94
  "arrowParens": "always"
98
- },
99
- "release-it": {
100
- "git": {
101
- "changelog": "npm run changelog:unreleased"
102
- },
103
- "github": {
104
- "release": true
105
- },
106
- "hooks": {
107
- "after:bump": "npm run changelog:update"
108
- }
109
95
  }
110
96
  }
package/vendor/qunit.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * QUnit 2.19.4
2
+ * QUnit 2.25.0
3
3
  * https://qunitjs.com/
4
4
  *
5
5
  * Copyright OpenJS Foundation and other contributors
@@ -45,10 +45,10 @@
45
45
  @media (min-height: 500px) {
46
46
  #qunit {
47
47
  position: fixed;
48
- left: 0px;
49
- right: 0px;
50
- top: 0px;
51
- bottom: 0px;
48
+ left: 0;
49
+ right: 0;
50
+ top: 0;
51
+ bottom: 0;
52
52
  padding: 8px;
53
53
  display: -webkit-box;
54
54
  display: flex;
@@ -329,11 +329,11 @@
329
329
  margin: 0;
330
330
  }
331
331
 
332
- #qunit-tests li strong {
332
+ #qunit-tests li .qunit-test-name {
333
333
  cursor: pointer;
334
334
  }
335
335
 
336
- #qunit-tests li.skipped strong {
336
+ #qunit-tests li.skipped .qunit-test-name {
337
337
  cursor: default;
338
338
  }
339
339