Skip to content

Commit 6d44d94

Browse files
authored
Remove msw option from setupApplicationTest() fn (#10969)
This is no longer needed since we're not running MSW and Mirage in parallel anymore.
1 parent 10fcf3b commit 6d44d94

Some content is hidden

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

48 files changed

+48
-53
lines changed

tests/acceptance/404-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import percySnapshot from '@percy/ember';
66
import { setupApplicationTest } from 'crates-io/tests/helpers';
77

88
module('Acceptance | 404', function (hooks) {
9-
setupApplicationTest(hooks, { msw: true });
9+
setupApplicationTest(hooks);
1010

1111
test('/unknown-route shows a 404 page', async function (assert) {
1212
await visit('/unknown-route');

tests/acceptance/api-token-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { setupApplicationTest } from 'crates-io/tests/helpers';
99
import { visit } from '../helpers/visit-ignoring-abort';
1010

1111
module('Acceptance | api-tokens', function (hooks) {
12-
setupApplicationTest(hooks, { msw: true });
12+
setupApplicationTest(hooks);
1313

1414
function prepare(context) {
1515
let user = context.db.user.create({

tests/acceptance/categories-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { setupApplicationTest } from 'crates-io/tests/helpers';
99
import axeConfig from '../axe-config';
1010

1111
module('Acceptance | categories', function (hooks) {
12-
setupApplicationTest(hooks, { msw: true });
12+
setupApplicationTest(hooks);
1313

1414
test('listing categories', async function (assert) {
1515
this.owner.lookup('service:intl').locale = 'en';

tests/acceptance/crate-deletion-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { setupApplicationTest } from 'crates-io/tests/helpers';
66
import { visit } from '../helpers/visit-ignoring-abort';
77

88
module('Acceptance | crate deletion', function (hooks) {
9-
setupApplicationTest(hooks, { msw: true });
9+
setupApplicationTest(hooks);
1010

1111
test('happy path', async function (assert) {
1212
let user = this.db.user.create();

tests/acceptance/crate-dependencies-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import axeConfig from '../axe-config';
1313
import { visit } from '../helpers/visit-ignoring-abort';
1414

1515
module('Acceptance | crate dependencies page', function (hooks) {
16-
setupApplicationTest(hooks, { msw: true });
16+
setupApplicationTest(hooks);
1717

1818
test('shows the lists of dependencies', async function (assert) {
1919
loadFixtures(this.db);

tests/acceptance/crate-following-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { http, HttpResponse } from 'msw';
88
import { setupApplicationTest } from 'crates-io/tests/helpers';
99

1010
module('Acceptance | Crate following', function (hooks) {
11-
setupApplicationTest(hooks, { msw: true });
11+
setupApplicationTest(hooks);
1212

1313
function prepare(context, { loggedIn = true, following = false } = {}) {
1414
let { db } = context;

tests/acceptance/crate-navtabs-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const TAB_REV_DEPS = '[data-test-rev-deps-tab] a';
1010
const TAB_SETTINGS = '[data-test-settings-tab] a';
1111

1212
module('Acceptance | crate navigation tabs', function (hooks) {
13-
setupApplicationTest(hooks, { msw: true });
13+
setupApplicationTest(hooks);
1414

1515
test('basic navigation between tabs works as expected', async function (assert) {
1616
let crate = this.db.crate.create({ name: 'nanomsg' });

tests/acceptance/crate-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import axeConfig from '../axe-config';
1313
import { visit } from '../helpers/visit-ignoring-abort';
1414

1515
module('Acceptance | crate page', function (hooks) {
16-
setupApplicationTest(hooks, { msw: true });
16+
setupApplicationTest(hooks);
1717

1818
test('visiting a crate page from the front page', async function (assert) {
1919
let crate = this.db.crate.create({ name: 'nanomsg', newest_version: '0.6.1' });

tests/acceptance/crates-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import axeConfig from '../axe-config';
1313
import { visit } from '../helpers/visit-ignoring-abort';
1414

1515
module('Acceptance | crates page', function (hooks) {
16-
setupApplicationTest(hooks, { msw: true });
16+
setupApplicationTest(hooks);
1717

1818
// should match the default set in the crates controller
1919
const per_page = 50;

tests/acceptance/dashboard-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { setupApplicationTest } from 'crates-io/tests/helpers';
99
import { visit } from '../helpers/visit-ignoring-abort';
1010

1111
module('Acceptance | Dashboard', function (hooks) {
12-
setupApplicationTest(hooks, { msw: true });
12+
setupApplicationTest(hooks);
1313

1414
test('shows "page requires authentication" error when not logged in', async function (assert) {
1515
await visit('/dashboard');

0 commit comments

Comments
 (0)