Skip to content

Commit

Permalink
revert faker tree-shaking import
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 committed Aug 26, 2024
1 parent 4fd1b79 commit 1eaedae
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/app/src/components/FileMatchButton.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Defining emits for "Button.vue" removes the native handler on the
// <button> element. vue-tsc just can't handle this yet.
import FileMatchButton from './FileMatchButton.vue'
import { faker } from '@faker-js/faker'
import faker from '@faker-js/faker'
import { ref } from 'vue'
const fileMatchButtonSelector = '[data-cy=file-match-button]'

Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/components/FileMatchIndicator.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import FileMatchIndicator from './FileMatchIndicator.vue'
import { faker } from '@faker-js/faker'
import faker from '@faker-js/faker'

faker.seed(1)

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend-shared/script/testStubSpecs.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import JustMyLuck from 'just-my-luck'
import { faker } from '@faker-js/faker'
import faker from '@faker-js/faker'
import { template, keys, reduce, templateSettings } from 'lodash'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend-shared/src/components/Alert.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import CoffeeIcon from '~icons/mdi/coffee'
import LoadingIcon from '~icons/mdi/loading'
import { faker } from '@faker-js/faker'
import faker from '@faker-js/faker'
import Alert from './Alert.vue'
import { defaultMessages } from '../locales/i18n'
import { ref } from 'vue'
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend-shared/src/components/Collapsible.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Collapsible from './Collapsible.vue'
import { faker } from '@faker-js/faker'
import faker from '@faker-js/faker'

faker.seed(1)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ListRowHeader from './ListRowHeader.vue'
import { faker } from '@faker-js/faker'
import faker from '@faker-js/faker'
import { IconFileChangesAdded, IconActionAdd } from '@cypress-design/vue-icon'
import Button from '@cy/components/Button.vue'

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend-shared/src/warning/Warning.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defaultMessages } from '@cy/i18n'
import Warning from './Warning.vue'
import { faker } from '@faker-js/faker'
import faker from '@faker-js/faker'
import { ref } from 'vue'

faker.seed(1)
Expand Down
2 changes: 1 addition & 1 deletion packages/launchpad/src/components/code/FileRow.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-irregular-whitespace */
import FileRow from './FileRow.vue'
import { faker } from '@faker-js/faker'
import faker from '@faker-js/faker'
import { defaultMessages } from '@cy/i18n'

const content = `import { defineConfig } from 'cypress'
Expand Down
2 changes: 1 addition & 1 deletion packages/launchpad/src/warning/WarningList.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { WarningListFragmentDoc } from '../generated/graphql-test'
import WarningList from './WarningList.vue'
import { faker } from '@faker-js/faker'
import faker from '@faker-js/faker'
import { defaultMessages } from '@cy/i18n'
import { WarningList_RemoveWarningDocument } from '../generated/graphql'

Expand Down

0 comments on commit 1eaedae

Please sign in to comment.