Skip to content

Commit d826b85

Browse files
committed
fix: build test
1 parent 3c9a102 commit d826b85

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const description = "From addon-test-support";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const description = "From test-support";

tests/unit/build-test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import fileA from 'dummy/a';
77
import fileB from 'dummy/b';
88
import muFile from 'dummy/src/test-file';
99
import shadowedFile from 'dummy/shadowed-file';
10+
import { description as fromAts } from 'in-repo-a/test-support/from-ats';
11+
import { description as fromTs } from 'dummy/tests/from-ts';
1012

1113
module('Unit | Build', function() {
1214
test('in-repo addons\' addon trees wind up in the right place', function(assert) {
@@ -30,4 +32,13 @@ module('Unit | Build', function() {
3032
test('MU addon files wind up in the right place', function(assert) {
3133
assert.equal(addonFileC, 'in-repo-c/src/test-file');
3234
});
35+
36+
test('addon\'s addon-test-support files end up in <addon-name>/test-support/*', function (assert) {
37+
assert.ok(fromAts);
38+
assert.equal(fromAts, 'From addon-test-support');
39+
});
40+
test('addon\'s test-support files end up in dummy/tests/*', function (assert) {
41+
assert.ok(fromTs);
42+
assert.equal(fromTs, 'From test-support');
43+
});
3344
});

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
"inlineSources": true,
99
"baseUrl": ".",
1010
"paths": {
11-
"dummy/tests/*": ["tests/*"],
11+
"dummy/tests/*": ["tests/*", "tests/dummy/lib/in-repo-a/test-support/*"],
1212
"dummy/src/*": ["tests/dummy/src/*"],
1313
"dummy/*": ["tests/dummy/app/*", "tests/dummy/lib/in-repo-a/app/*", "tests/dummy/lib/in-repo-b/app/*"],
1414
"in-repo-a/*": ["tests/dummy/lib/in-repo-a/addon/*"],
15+
"in-repo-a/test-support": ["tests/dummy/lib/in-repo-a/addon-test-support/"],
16+
"in-repo-a/test-support/*": ["tests/dummy/lib/in-repo-a/addon-test-support/*"],
1517
"in-repo-b/*": ["tests/dummy/lib/in-repo-b/addon/*"],
1618
"in-repo-c/src/*": ["tests/dummy/lib/in-repo-c/src/*"]
1719
}

0 commit comments

Comments
 (0)