Skip to content

Commit

Permalink
Support verbatimModuleSyntax in test app #1010
Browse files Browse the repository at this point in the history
Required as @tsconfig/ember has added "verbatimModuleSyntax": true,

tsconfig/bases@aacda43

Ref: failing build #1008
  • Loading branch information
gilest authored Oct 30, 2023
1 parent 04fc344 commit 372ccc8
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion test-app/tests/helpers/file-queue-helper-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { selectFiles } from 'ember-file-upload/test-support';
import { uploadHandler } from 'ember-file-upload';
import { later } from '@ember/runloop';

import { MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';
import { type MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';

interface LocalContext extends MirageTestContext {
filter: (file: File, files: File[], index: number) => boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, triggerEvent, TestContext } from '@ember/test-helpers';
import { render, triggerEvent, type TestContext } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import {
dragAndDrop,
Expand Down
2 changes: 1 addition & 1 deletion test-app/tests/integration/mirage-handler-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ogg,
png,
} from 'test-app/tests/utils/file-data';
import { MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';
import { type MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';
import type { UploadFile } from 'ember-file-upload';

interface LocalTestContext extends MirageTestContext {
Expand Down
2 changes: 1 addition & 1 deletion test-app/tests/integration/progress-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { selectFiles } from 'ember-file-upload/test-support';
import { MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';
import { type MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';
import { TrackedArray } from 'tracked-built-ins';
import { type Asset } from 'test-app/components/demo-upload';
import type Owner from '@ember/owner';
Expand Down
2 changes: 1 addition & 1 deletion test-app/tests/integration/queue-listeners-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { TestContext, render, settled } from '@ember/test-helpers';
import { type TestContext, render, settled } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { selectFiles } from 'ember-file-upload/test-support';
import { tracked } from '@glimmer/tracking';
Expand Down
2 changes: 1 addition & 1 deletion test-app/tests/integration/services/file-queue-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, settled, TestContext } from '@ember/test-helpers';
import { render, settled, type TestContext } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { UploadFile, FileSource } from 'ember-file-upload';
import type FileQueueService from 'ember-file-upload/services/file-queue';
Expand Down
2 changes: 1 addition & 1 deletion test-app/tests/integration/upload-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { selectFiles } from 'ember-file-upload/test-support';
import { MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';
import { type MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';
import { TrackedArray } from 'tracked-built-ins';
import { type Asset } from 'test-app/components/demo-upload';
import getImageBlob from 'test-app/tests/helpers/get-image-blob';
Expand Down
2 changes: 1 addition & 1 deletion test-app/tests/unit/services/file-queue-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
FileState,
UploadFile,
} from 'ember-file-upload';
import { TestContext } from '@ember/test-helpers';
import { type TestContext } from '@ember/test-helpers';
import { png } from 'test-app/tests/utils/file-data';

module('Unit | Service | file-queue', function (hooks) {
Expand Down
2 changes: 1 addition & 1 deletion test-app/tests/unit/upload-file-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { setupTest } from 'ember-qunit';
import { uploadHandler } from 'ember-file-upload';
import { UploadFile, FileSource } from 'ember-file-upload';

import { MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';
import { type MirageTestContext, setupMirage } from 'ember-cli-mirage/test-support';

module('Unit | UploadFile', function (hooks) {
setupTest(hooks);
Expand Down
1 change: 0 additions & 1 deletion test-app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"types/*"
]
},
"moduleResolution": "node16",
"skipLibCheck": true
},
"glint": {
Expand Down

0 comments on commit 372ccc8

Please sign in to comment.