Skip to content

Commit dbd6bf8

Browse files
committed
Run tests for new test packages
1 parent cf072ee commit dbd6bf8

File tree

16 files changed

+2561
-32342
lines changed

16 files changed

+2561
-32342
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,9 @@ jobs:
134134
run: yarn workspace dummy-addon test
135135
- name: Plugin Addon
136136
run: yarn workspace plugin-addon test
137+
- name: Octane Addon
138+
run: yarn workspace octane-addon test
139+
- name: Dummy Addon With Custom moduleName
140+
run: yarn workspace @my-namespace/dummy-addon test
141+
- name: Octane Addon With Custom moduleName
142+
run: yarn workspace @my-namespace/octane-addon test

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"workspaces": [
44
"packages/ember-css-modules",
55
"test-packages/dummy-addon",
6+
"test-packages/dummy-addon-with-module-name",
67
"test-packages/embroider-app",
8+
"test-packages/octane-addon",
9+
"test-packages/octane-addon-with-module-name",
710
"test-packages/plugin-addon",
811
"test-packages/sass-app"
912
]

test-packages/dummy-addon-with-module-name/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@my-namespace/dummy-addon-with-module-name",
2+
"name": "@my-namespace/dummy-addon",
33
"version": "0.0.0",
44
"description": "The default blueprint for ember-cli addons.",
55
"keywords": [

test-packages/dummy-addon-with-module-name/yarn.lock

Lines changed: 0 additions & 8168 deletions
This file was deleted.

test-packages/embroider-app/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"lint:hbs": "ember-template-lint .",
1717
"lint:js": "eslint .",
1818
"start": "ember serve",
19-
"test": "npm-run-all lint:* test:*",
20-
"test:ember": "ember test"
19+
"test": "ember test"
2120
},
2221
"devDependencies": {
2322
"@ember/optional-features": "^1.3.0",

test-packages/octane-addon-with-module-name/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
"lint:js": "eslint . --cache",
2222
"lint:js:fix": "eslint . --fix",
2323
"start": "ember serve",
24-
"test": "npm-run-all lint test:*",
25-
"test:ember": "ember test",
26-
"test:ember-compatibility": "ember try:each"
24+
"test": "ember test"
2725
},
2826
"dependencies": {
2927
"ember-cli-babel": "^7.23.0",

test-packages/octane-addon-with-module-name/tests/integration/components/my-component-test.js

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { module, test } from 'qunit';
2+
import { setupRenderingTest } from 'ember-qunit';
3+
import { render } from '@ember/test-helpers';
4+
import { hbs } from 'ember-cli-htmlbars';
5+
import styles from 'octane-addon-with-module-name/components/my-message-component.css';
6+
7+
module('Integration | Component | MyMessageComponent', function (hooks) {
8+
setupRenderingTest(hooks);
9+
10+
test('it renders', async function (assert) {
11+
await render(hbs`
12+
<MyMessageComponent />
13+
`);
14+
15+
assert.dom('h1').hasClass(styles.message);
16+
});
17+
});

test-packages/octane-addon-with-module-name/yarn.lock

Lines changed: 0 additions & 11463 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default } from 'octane-addon/components/my-message-component';
1+
export { default } from 'octane-addon/components/my-message-component';

0 commit comments

Comments
 (0)