Skip to content

Commit 8b1b1da

Browse files
committed
Pick change from ts-convert branch which make not part of TS migration
1 parent 95c16c7 commit 8b1b1da

File tree

29 files changed

+1858
-2003
lines changed

29 files changed

+1858
-2003
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ jobs:
6767
- ember-lts-4.8
6868
- ember-lts-4.12
6969
- ember-lts-5.4
70+
- ember-lts-5.8
7071
- ember-release
7172
- ember-beta
7273
- ember-canary
73-
- ember-modifier-4
74-
- ember-test-helpers-3
74+
- ember-modifier-3
75+
- ember-test-helpers-2
76+
- ember-test-helpers-4
7577
- embroider-safe
7678
- embroider-optimized
7779

.npmrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Docs: https://pnpm.io/npmrc
2+
# https://github.com/emberjs/rfcs/pull/907
3+
4+
# we don't want addons to be bad citizens of the ecosystem
5+
auto-install-peers=false
6+
7+
# we want true isolation,
8+
# if a dependency is not declared, we want an error
9+
resolve-peers-from-workspace-root=false

addon/package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@
4747
"@babel/core": "^7.20.12",
4848
"@babel/plugin-proposal-class-properties": "^7.18.6",
4949
"@babel/plugin-proposal-decorators": "^7.20.7",
50+
"@ember/test-helpers": "^3.0.0",
51+
"@ember/test-waiters": "^3.1.0",
5052
"@embroider/addon-dev": "^3.0.0",
53+
"@glimmer/component": "^1.1.2",
5154
"@rollup/plugin-babel": "^6.0.3",
5255
"@babel/eslint-parser": "^7.11.0",
56+
"ember-modifier": "^4.2.0",
5357
"eslint": "^7.32.0",
5458
"eslint-config-prettier": "^8.4.0",
5559
"eslint-plugin-ember": "^10.5.9",
@@ -59,7 +63,9 @@
5963
"npm-run-all2": "^5.0.0",
6064
"prettier": "^2.5.1",
6165
"rollup": "^3.10.0",
62-
"rollup-plugin-copy": "^3.4.0"
66+
"rollup-plugin-copy": "^3.4.0",
67+
"typescript": "^5.5.4",
68+
"webpack": "^5.94.0"
6369
},
6470
"engines": {
6571
"node": "14.* || >= 16"
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/app/resolver.js

-3
This file was deleted.

docs/config/environment.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ module.exports = function (environment) {
77
rootURL: '/',
88
locationType: 'history',
99
EmberENV: {
10+
EXTEND_PROTOTYPES: false,
1011
FEATURES: {
1112
// Here you can enable experimental features on an ember canary build
1213
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
1314
},
14-
EXTEND_PROTOTYPES: {
15-
// Prevent Ember Data from overriding Date.parse.
16-
Date: false,
17-
},
1815
},
1916

2017
APP: {

docs/package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
"devDependencies": {
2424
"@babel/core": "^7.20.12",
2525
"@ember/optional-features": "^2.0.0",
26-
"@ember/test-helpers": "^2.6.0",
26+
"@ember/test-helpers": "^3.0.0",
2727
"@ember/test-waiters": "^3.0.1",
2828
"@embroider/macros": "^1.9.0",
29-
"@embroider/test-setup": "^1.2.0",
29+
"@embroider/test-setup": "^4.0.0",
3030
"@glimmer/component": "^1.0.4",
3131
"@glimmer/tracking": "^1.0.4",
3232
"babel-eslint": "^10.0.3",
3333
"broccoli-asset-rev": "^3.0.0",
34-
"ember-a11y-testing": "^5.0.0",
34+
"ember-a11y-testing": "^7.0.0",
3535
"ember-auto-import": "^2.4.0",
3636
"ember-cli": "^4.2.0",
3737
"ember-cli-babel": "^7.26.11",
@@ -40,11 +40,9 @@
4040
"ember-cli-inject-live-reload": "^2.0.0",
4141
"ember-cli-sri": "^2.1.1",
4242
"ember-cli-terser": "^4.0.2",
43-
"ember-disable-prototype-extensions": "^1.1.3",
44-
"ember-export-application-global": "^2.0.0",
4543
"ember-load-initializers": "^2.1.2",
46-
"ember-modifier": "^3.2.0",
47-
"ember-qunit": "mydea/ember-qunit#fn/ember-auto-import-v2-node-12",
44+
"ember-modifier": "^4.2.0",
45+
"ember-qunit": "^8.1.0",
4846
"ember-resolver": "^8.0.3",
4947
"ember-source": "^4.2.0",
5048
"ember-source-channel-url": "^3.0.0",

docs/tests/acceptance/smoke-modifier-test.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,10 @@ module('Acceptance | smoke modifier', function (hooks) {
511511
let result = '';
512512
for (const index in elements) {
513513
const element = elements[index];
514-
result += element.textContent.replace(//g, '').replace(/\s+/g, ' ').replace(/^\s+/, '').replace(/\s+$/, '');
515-
result += ' ';
514+
if (element.textContent) {
515+
result += element.textContent.replace(//g, '').replace(/\s+/g, ' ').replace(/^\s+/, '').replace(/\s+$/, '');
516+
result += ' ';
517+
}
516518
}
517519
return result;
518520
}

docs/tests/helpers/index.js

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import {
2+
setupApplicationTest as upstreamSetupApplicationTest,
3+
setupRenderingTest as upstreamSetupRenderingTest,
4+
setupTest as upstreamSetupTest,
5+
} from 'ember-qunit';
6+
7+
// This file exists to provide wrappers around ember-qunit's
8+
// test setup functions. This way, you can easily extend the setup that is
9+
// needed per test type.
10+
11+
function setupApplicationTest(hooks, options) {
12+
upstreamSetupApplicationTest(hooks, options);
13+
14+
// Additional setup for application tests can be done here.
15+
//
16+
// For example, if you need an authenticated session for each
17+
// application test, you could do:
18+
//
19+
// hooks.beforeEach(async function () {
20+
// await authenticateSession(); // ember-simple-auth
21+
// });
22+
//
23+
// This is also a good place to call test setup functions coming
24+
// from other addons:
25+
//
26+
// setupIntl(hooks, 'en-us'); // ember-intl
27+
// setupMirage(hooks); // ember-cli-mirage
28+
}
29+
30+
function setupRenderingTest(hooks, options) {
31+
upstreamSetupRenderingTest(hooks, options);
32+
33+
// Additional setup for rendering tests can be done here.
34+
}
35+
36+
function setupTest(hooks, options) {
37+
upstreamSetupTest(hooks, options);
38+
39+
// Additional setup for unit tests can be done here.
40+
}
41+
42+
export { setupApplicationTest, setupRenderingTest, setupTest };

docs/tests/helpers/start-app.js

-17
This file was deleted.

0 commit comments

Comments
 (0)