ember-exam 9.0.0 → 9.1.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/.release-plan.json +21 -0
- package/README.md +39 -2
- package/addon-test-support/index.js +1 -0
- package/package.json +46 -68
- package/.codeclimate.yml +0 -20
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"solution": {
|
|
3
|
+
"ember-exam": {
|
|
4
|
+
"impact": "minor",
|
|
5
|
+
"oldVersion": "9.0.0",
|
|
6
|
+
"newVersion": "9.1.0",
|
|
7
|
+
"constraints": [
|
|
8
|
+
{
|
|
9
|
+
"impact": "minor",
|
|
10
|
+
"reason": "Appears in changelog section :rocket: Enhancement"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"impact": "patch",
|
|
14
|
+
"reason": "Appears in changelog section :house: Internal"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"pkgJSONPath": "./package.json"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"description": "## Release (2025-03-05)\n\nember-exam 9.1.0 (minor)\n\n#### :rocket: Enhancement\n* `ember-exam`\n * [#1313](https://github.com/ember-cli/ember-exam/pull/1313) Use ember-exam with vite ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n\n#### :house: Internal\n* `ember-exam`\n * [#1336](https://github.com/ember-cli/ember-exam/pull/1336) Update release-plan ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n * [#1333](https://github.com/ember-cli/ember-exam/pull/1333) Fix lints since eslint-plugin-ember was upgraded ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n * [#1332](https://github.com/ember-cli/ember-exam/pull/1332) Revert #1188 ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n * [#1330](https://github.com/ember-cli/ember-exam/pull/1330) Revert \"Update dependency ember-qunit to v9\" ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n * [#1329](https://github.com/ember-cli/ember-exam/pull/1329) Revert \"Update pnpm to v10.5.2\" ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n * [#1322](https://github.com/ember-cli/ember-exam/pull/1322) Setup Release plan ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n * [#1314](https://github.com/ember-cli/ember-exam/pull/1314) Convert to pnpm ([@NullVoxPopuli](https://github.com/NullVoxPopuli))\n * [#1289](https://github.com/ember-cli/ember-exam/pull/1289) Add .codeclimate.yml to .npmignore ([@SergeAstapov](https://github.com/SergeAstapov))\n\n#### Committers: 2\n- Sergey Astapov ([@SergeAstapov](https://github.com/SergeAstapov))\n- [@NullVoxPopuli](https://github.com/NullVoxPopuli)\n"
|
|
21
|
+
}
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ The [documentation website](https://ember-cli.github.io/ember-exam/) contains ex
|
|
|
39
39
|
Installation is as easy as running:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
$
|
|
42
|
+
$ npm install --save-dev ember-exam
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## How To Use
|
|
@@ -72,12 +72,49 @@ To get the unique features of Ember Exam (described in-depth below), you will ne
|
|
|
72
72
|
|
|
73
73
|
```js
|
|
74
74
|
// test-helper.js
|
|
75
|
-
import start from 'ember-exam/test-support
|
|
75
|
+
import { start } from 'ember-exam/test-support';
|
|
76
76
|
|
|
77
77
|
// Options passed to `start` will be passed-through to ember-qunit
|
|
78
78
|
start();
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
+
## How to use with Vite
|
|
82
|
+
|
|
83
|
+
All of the above applies, but we need to tell vite to build the app before telling ember/exam to run tests on that output.
|
|
84
|
+
|
|
85
|
+
Update your test-helper.js or test-helper.ts, to have add the ember-exam `start` function:
|
|
86
|
+
```diff
|
|
87
|
+
// ...
|
|
88
|
+
import { setApplication } from '@ember/test-helpers';
|
|
89
|
+
import { setup } from 'qunit-dom';
|
|
90
|
+
- import { start as qunitStart, setupEmberOnerrorValidation } from 'ember-qunit';
|
|
91
|
+
+ import { setupEmberOnerrorValidation } from 'ember-qunit';
|
|
92
|
+
+ import { start as startEmberExam } from 'ember-exam/test-support';
|
|
93
|
+
|
|
94
|
+
export function start() {
|
|
95
|
+
setApplication(Application.create(config.APP));
|
|
96
|
+
|
|
97
|
+
setup(QUnit.assert);
|
|
98
|
+
setupEmberOnerrorValidation();
|
|
99
|
+
|
|
100
|
+
- qunitStart();
|
|
101
|
+
+ // Options passed to `start` will be passed-through to ember-qunit
|
|
102
|
+
+ startEmberExam();
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Testing development:
|
|
107
|
+
```bash
|
|
108
|
+
NODE_ENV=development vite build --mode test
|
|
109
|
+
ember exam --path dist
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Testing production:
|
|
113
|
+
```bash
|
|
114
|
+
vite build --mode test
|
|
115
|
+
ember exam --path dist
|
|
116
|
+
```
|
|
117
|
+
|
|
81
118
|
### Version < `3.0.0`
|
|
82
119
|
|
|
83
120
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as start } from './start';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-exam",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "Run your tests with randomization, splitting, and parallelization for beautiful tests.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -16,20 +16,6 @@
|
|
|
16
16
|
"doc": "doc",
|
|
17
17
|
"test": "tests"
|
|
18
18
|
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "ember build --environment=production",
|
|
21
|
-
"coverage": "nyc report --reporter=text-lcov | codeclimate-test-reporter",
|
|
22
|
-
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
|
|
23
|
-
"lint:css": "stylelint \"**/*.css\"",
|
|
24
|
-
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
|
|
25
|
-
"lint:hbs": "ember-template-lint .",
|
|
26
|
-
"lint:js": "eslint .",
|
|
27
|
-
"start": "ember serve",
|
|
28
|
-
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
|
|
29
|
-
"test:ember": "ember test",
|
|
30
|
-
"test:ember-compatibility": "ember try:each",
|
|
31
|
-
"test:node": "nyc mocha 'node-tests/**/*-test.js'"
|
|
32
|
-
},
|
|
33
19
|
"nyc": {
|
|
34
20
|
"exclude": [
|
|
35
21
|
"config",
|
|
@@ -53,54 +39,53 @@
|
|
|
53
39
|
"silent-error": "^1.1.1"
|
|
54
40
|
},
|
|
55
41
|
"devDependencies": {
|
|
56
|
-
"@babel/eslint-parser": "7.
|
|
57
|
-
"@babel/plugin-proposal-decorators": "7.
|
|
58
|
-
"@ember/optional-features": "2.
|
|
42
|
+
"@babel/eslint-parser": "7.26.8",
|
|
43
|
+
"@babel/plugin-proposal-decorators": "7.25.9",
|
|
44
|
+
"@ember/optional-features": "2.2.0",
|
|
59
45
|
"@ember/string": "3.1.1",
|
|
60
|
-
"@ember/test-helpers": "3.
|
|
46
|
+
"@ember/test-helpers": "3.3.1",
|
|
61
47
|
"@embroider/test-setup": "3.0.3",
|
|
62
|
-
"@release-it-plugins/lerna-changelog": "6.0.0",
|
|
63
48
|
"auto-dist-tag": "2.1.1",
|
|
64
49
|
"codeclimate-test-reporter": "0.5.1",
|
|
65
50
|
"concurrently": "8.2.2",
|
|
66
|
-
"ember-cli": "5.
|
|
67
|
-
"ember-cli-addon-docs": "7.
|
|
68
|
-
"ember-cli-addon-docs-yuidoc": "1.
|
|
51
|
+
"ember-cli": "5.12.0",
|
|
52
|
+
"ember-cli-addon-docs": "7.2.2",
|
|
53
|
+
"ember-cli-addon-docs-yuidoc": "1.1.0",
|
|
69
54
|
"ember-cli-clean-css": "3.0.0",
|
|
70
|
-
"ember-cli-dependency-checker": "3.3.
|
|
55
|
+
"ember-cli-dependency-checker": "3.3.3",
|
|
71
56
|
"ember-cli-deploy": "2.0.0",
|
|
72
57
|
"ember-cli-deploy-build": "3.0.0",
|
|
73
58
|
"ember-cli-deploy-git": "1.3.4",
|
|
74
59
|
"ember-cli-deploy-git-ci": "1.0.1",
|
|
75
60
|
"ember-cli-htmlbars": "6.3.0",
|
|
76
61
|
"ember-cli-inject-live-reload": "2.1.0",
|
|
77
|
-
"ember-data": "5.3.
|
|
62
|
+
"ember-data": "5.3.11",
|
|
78
63
|
"ember-load-initializers": "2.1.2",
|
|
79
|
-
"ember-qunit": "8.
|
|
64
|
+
"ember-qunit": "8.1.1",
|
|
80
65
|
"ember-resolver": "11.0.1",
|
|
81
|
-
"ember-source": "5.
|
|
66
|
+
"ember-source": "5.12.0",
|
|
82
67
|
"ember-source-channel-url": "3.0.0",
|
|
83
|
-
"ember-template-lint": "
|
|
68
|
+
"ember-template-lint": "7.0.1",
|
|
84
69
|
"ember-try": "3.0.0",
|
|
85
|
-
"eslint": "8.
|
|
86
|
-
"eslint-config-prettier": "
|
|
87
|
-
"eslint-plugin-ember": "
|
|
88
|
-
"eslint-plugin-n": "16.
|
|
89
|
-
"eslint-plugin-prettier": "5.
|
|
90
|
-
"eslint-plugin-qunit": "8.
|
|
70
|
+
"eslint": "8.57.1",
|
|
71
|
+
"eslint-config-prettier": "10.0.2",
|
|
72
|
+
"eslint-plugin-ember": "12.5.0",
|
|
73
|
+
"eslint-plugin-n": "17.16.2",
|
|
74
|
+
"eslint-plugin-prettier": "5.2.3",
|
|
75
|
+
"eslint-plugin-qunit": "8.1.2",
|
|
91
76
|
"fixturify": "3.0.0",
|
|
92
77
|
"loader.js": "4.7.0",
|
|
93
|
-
"mocha": "
|
|
94
|
-
"nyc": "
|
|
95
|
-
"prettier": "3.
|
|
96
|
-
"qunit": "2.
|
|
97
|
-
"release-
|
|
78
|
+
"mocha": "11.1.0",
|
|
79
|
+
"nyc": "17.1.0",
|
|
80
|
+
"prettier": "3.5.3",
|
|
81
|
+
"qunit": "2.24.1",
|
|
82
|
+
"release-plan": "^0.13.1",
|
|
98
83
|
"rsvp": "4.8.5",
|
|
99
|
-
"sinon": "
|
|
100
|
-
"stylelint": "16.
|
|
101
|
-
"stylelint-config-standard": "
|
|
102
|
-
"stylelint-prettier": "5.0.
|
|
103
|
-
"webpack": "5.
|
|
84
|
+
"sinon": "19.0.2",
|
|
85
|
+
"stylelint": "16.15.0",
|
|
86
|
+
"stylelint-config-standard": "37.0.0",
|
|
87
|
+
"stylelint-prettier": "5.0.3",
|
|
88
|
+
"webpack": "5.98.0"
|
|
104
89
|
},
|
|
105
90
|
"peerDependencies": {
|
|
106
91
|
"ember-qunit": "*",
|
|
@@ -110,6 +95,9 @@
|
|
|
110
95
|
"engines": {
|
|
111
96
|
"node": ">= 18"
|
|
112
97
|
},
|
|
98
|
+
"volta": {
|
|
99
|
+
"node": "18.20.7"
|
|
100
|
+
},
|
|
113
101
|
"publishConfig": {
|
|
114
102
|
"registry": "https://registry.npmjs.org"
|
|
115
103
|
},
|
|
@@ -119,28 +107,18 @@
|
|
|
119
107
|
"ember-addon": {
|
|
120
108
|
"configPath": "tests/dummy/config"
|
|
121
109
|
},
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
"releaseName": "v${version}",
|
|
136
|
-
"tokenRef": "GITHUB_AUTH"
|
|
137
|
-
},
|
|
138
|
-
"npm": {
|
|
139
|
-
"publish": false
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"volta": {
|
|
143
|
-
"node": "18.19.0",
|
|
144
|
-
"yarn": "1.22.19"
|
|
110
|
+
"scripts": {
|
|
111
|
+
"build": "ember build --environment=production",
|
|
112
|
+
"coverage": "nyc report --reporter=text-lcov | codeclimate-test-reporter",
|
|
113
|
+
"lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
|
|
114
|
+
"lint:css": "stylelint \"**/*.css\"",
|
|
115
|
+
"lint:css:fix": "concurrently \"npm:lint:css -- --fix\"",
|
|
116
|
+
"lint:hbs": "ember-template-lint .",
|
|
117
|
+
"lint:js": "eslint .",
|
|
118
|
+
"start": "ember serve",
|
|
119
|
+
"test": "concurrently \"npm:lint\" \"npm:test:*\" --names \"lint,test:\"",
|
|
120
|
+
"test:ember": "ember test",
|
|
121
|
+
"test:ember-compatibility": "ember try:each",
|
|
122
|
+
"test:node": "nyc mocha 'node-tests/**/*-test.js'"
|
|
145
123
|
}
|
|
146
|
-
}
|
|
124
|
+
}
|
package/.codeclimate.yml
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
engines:
|
|
3
|
-
duplication:
|
|
4
|
-
enabled: true
|
|
5
|
-
config:
|
|
6
|
-
languages:
|
|
7
|
-
javascript:
|
|
8
|
-
mass_threshold: 50
|
|
9
|
-
|
|
10
|
-
eslint:
|
|
11
|
-
enabled: true
|
|
12
|
-
fixme:
|
|
13
|
-
enabled: true
|
|
14
|
-
ratings:
|
|
15
|
-
paths:
|
|
16
|
-
- "**.js"
|
|
17
|
-
exclude_paths:
|
|
18
|
-
- config/
|
|
19
|
-
- tests/
|
|
20
|
-
- vendor/
|