Skip to content

Commit c38d0f0

Browse files
move ember debug tests into own app
fix lint fix lint run in test app downgrade update gitignore rm ember add ember try remove template imports add in element fix lockfile revert rm no need fix lockfile revert fix wormhole rm rm add back test fix test ember debug copy build test env fix Update build.yml update update link update fix fix fix fix lint fix Delete ember_debug_test_app/tests/unit/utils/search-match-test.js Delete ember_debug_test_app/tests/unit/utils/parse-text-test.js remove app version remove app version
1 parent 9c2810c commit c38d0f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1402
-1619
lines changed

.ember-cli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"disableAnalytics": false,
3+
24
/**
35
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
46
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.

.github/workflows/build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ jobs:
4646
run: pnpm lint:hbs
4747
- name: Lint (js)
4848
run: pnpm lint:js
49-
- name: Run test
49+
- name: build
50+
run: EMBER_ENV=test pnpm ember build --environment test
51+
- name: test ember debug
52+
run: cd ember_debug_test_app && pnpm test
53+
- name: Run test inspector ui
5054
run: pnpm test
5155
env:
5256
COVERAGE: 'true'
@@ -105,14 +109,12 @@ jobs:
105109
- name: Set NO_EXTEND_PROTOTYPES
106110
if: matrix.scenario == 'ember-default-no-prototype-extensions'
107111
run: echo "NO_EXTEND_PROTOTYPES==true" >> .GITHUB_ENV
108-
- name: Setup ember-try scenario
109-
run: pnpm ember try:one ${{ matrix.scenario }} --skip-cleanup --- cat package.json
110-
- name: Build
112+
- name: Build Inspector
111113
run: pnpm ember build --environment test
114+
- name: Setup ember-try scenario
115+
run: cd ember_debug_test_app && pnpm ember try:one ${{ matrix.scenario }} --skip-cleanup --- cat package.json
112116
- name: Run test
113-
# Due to a bug in ember-cli, running `ember test` with `--path` doesn't set `EMBER_ENV=test`
114-
# See https://github.com/ember-cli/ember-cli/issues/8922
115-
run: EMBER_ENV=test pnpm ember test --path dist --filter="Ember Debug"
117+
run: cd ember_debug_test_app && EMBER_ENV=test pnpm test
116118

117119
build:
118120
name: Build extensions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
# dependencies
1010
/node_modules/
11+
ember_debug_test_app/node_modules/
12+
ember_debug_test_app/dist/
1113

1214
# misc
1315
/.env*

ember_debug_test_app/.ember-cli

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
/**
3+
Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
4+
rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
5+
*/
6+
"isTypeScriptProject": true
7+
}

ember_debug_test_app/app/app.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import Application from '@ember/application';
2+
import Resolver from 'ember-resolver';
3+
import loadInitializers from 'ember-load-initializers';
4+
import config from 'test-app/config/environment';
5+
6+
export default class App extends Application {
7+
modulePrefix = config.modulePrefix;
8+
podModulePrefix = config.podModulePrefix;
9+
Resolver = Resolver;
10+
}
11+
12+
console.log('test app');
13+
14+
loadInitializers(App, config.modulePrefix);

ember_debug_test_app/app/components/.gitkeep

Whitespace-only changes.

ember_debug_test_app/app/controllers/.gitkeep

Whitespace-only changes.

ember_debug_test_app/app/helpers/.gitkeep

Whitespace-only changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>TestApp</title>
6+
<meta name="description" content="">
7+
<meta name="viewport" content="width=device-width, initial-scale=1">
8+
9+
{{content-for "head"}}
10+
11+
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
12+
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/test-app.css">
13+
14+
{{content-for "head-footer"}}
15+
</head>
16+
<body>
17+
{{content-for "body"}}
18+
19+
<script src="{{rootURL}}assets/vendor.js"></script>
20+
<script src="{{rootURL}}assets/test-app.js"></script>
21+
22+
{{content-for "body-footer"}}
23+
</body>
24+
</html>

ember_debug_test_app/app/models/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)