mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #15126 from dannon/jest-29
Upgrade Jest from v27 to v29
This commit is contained in:
@@ -134,7 +134,7 @@ mandatory markup, just one big empty slot.
|
||||
// Testing a renderless component
|
||||
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue, waitForLifecyleEvent } from "jest/helpers";
|
||||
import { getLocalVue, waitForLifecyleEvent } from "tests/jest/helpers"
|
||||
import DoodadProvider from "./DoodadProvider";
|
||||
|
||||
describe("A renderless component", () => {
|
||||
|
||||
+13
-18
@@ -24,11 +24,11 @@
|
||||
"dependencies": {
|
||||
"@fontsource/atkinson-hyperlegible": "^4.5.10",
|
||||
"@fortawesome/fontawesome-free": "^5.15.4",
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
||||
"@fortawesome/fontawesome-svg-core": "^6.2.1",
|
||||
"@fortawesome/free-brands-svg-icons": "^5.15.4",
|
||||
"@fortawesome/free-regular-svg-icons": "^5.15.4",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
||||
"@fortawesome/vue-fontawesome": "^2.0.6",
|
||||
"@fortawesome/vue-fontawesome": "^2.0.9",
|
||||
"@handsontable/vue": "^2.0.0-beta1",
|
||||
"@hirez_io/observer-spy": "^2.1.2",
|
||||
"@johmun/vue-tags-input": "^2.1.0",
|
||||
@@ -129,28 +129,23 @@
|
||||
"eslint": "eslint -c .eslintrc.json --ext .js,.vue,.ts src tests/jest/standalone"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.18.9",
|
||||
"@babel/eslint-parser": "^7.18.9",
|
||||
"@babel/helper-validator-identifier": "^7.18.6",
|
||||
"@babel/core": "^7.20.5",
|
||||
"@babel/helper-validator-identifier": "^7.19.1",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/plugin-transform-runtime": "^7.18.9",
|
||||
"@babel/preset-env": "^7.18.9",
|
||||
"@babel/plugin-transform-runtime": "^7.19.6",
|
||||
"@babel/preset-env": "^7.20.2",
|
||||
"@babel/preset-typescript": "^7.18.6",
|
||||
"@cerner/duplicate-package-checker-webpack-plugin": "^2.3.0",
|
||||
"@testing-library/jest-dom": "^5.16.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.43.0",
|
||||
"@typescript-eslint/parser": "^5.43.0",
|
||||
"@vue/test-utils": "^1.3.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.45.1",
|
||||
"@typescript-eslint/parser": "^5.45.1",
|
||||
"@vue/test-utils": "^1.3.3",
|
||||
"@vue/tsconfig": "^0.1.3",
|
||||
"@vue/vue2-jest": "^29.1.0",
|
||||
"@vue/vue2-jest": "^29.2.1",
|
||||
"amdi18n-loader": "^0.9.3",
|
||||
"autoprefixer": "10.4.5",
|
||||
"axios-mock-adapter": "^1.20.0",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"babel-jest": "^28.1.3",
|
||||
"babel-loader": "^8.2.5",
|
||||
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
|
||||
"babel-plugin-transform-vue-template": "^0.4.2",
|
||||
"babel-jest": "^29.3.1",
|
||||
"buffer": "^6.0.3",
|
||||
"css-loader": "^6.7.1",
|
||||
"css-minimizer-webpack-plugin": "^4.0.0",
|
||||
@@ -163,9 +158,9 @@
|
||||
"gulp": "^4.0.2",
|
||||
"ignore-loader": "^0.1.2",
|
||||
"imports-loader": "^4.0.0",
|
||||
"jest": "^27.4.7",
|
||||
"jest": "^29.3.1",
|
||||
"jest-environment-jsdom": "^29.3.1",
|
||||
"jest-location-mock": "^1.0.9",
|
||||
"jest-raw-loader": "^1.0.1",
|
||||
"json-loader": "^0.5.7",
|
||||
"karma": "^6.3.16",
|
||||
"karma-chrome-launcher": "^3.1.0",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import ExportForm from "./ExportForm.vue";
|
||||
|
||||
const localVue = getLocalVue(true);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import exportsMixin from "./exportsMixin";
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import DatasetName from "./DatasetName";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import DatasetStorage from "./DatasetStorage";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import flushPromises from "flush-promises";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import axios from "axios";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import axios from "axios";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import DatasetAttributes from "./DatasetAttributes";
|
||||
import MockProvider from "../providers/MockProvider";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import DatasetError from "./DatasetError";
|
||||
import MockProvider from "../providers/MockProvider";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import DatasetInformation from "./DatasetInformation";
|
||||
import datasetResponse from "./testData/datasetResponse";
|
||||
import flushPromises from "flush-promises";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormBoolean from "./FormBoolean";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormDirectory from "./FormDirectory";
|
||||
import FilesDialog from "components/FilesDialog/FilesDialog";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormHidden from "./FormHidden";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormInput from "./FormInput";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormNumber from "./FormNumber";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MountTarget from "./FormRadio";
|
||||
|
||||
const localVue = getLocalVue(true);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormCard from "./FormCard";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormDisplay from "./FormDisplay";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormElement from "./FormElement";
|
||||
import FormHidden from "./Elements/FormHidden";
|
||||
import FormInput from "./Elements/FormInput";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormMessage from "./FormMessage";
|
||||
|
||||
jest.mock("app");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import CollectionDescription from "./CollectionDescription";
|
||||
import { JobStateSummary } from "./JobStateSummary";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import CollectionProgress from "./CollectionProgress";
|
||||
import { JobStateSummary } from "./JobStateSummary";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import ContentItem from "./ContentItem";
|
||||
import { updateContentFields } from "components/History/model/queries";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import DatasetDownload from "./DatasetDownload";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import SelectedItems from "./SelectedItems";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import HistoryFilters from "./HistoryFilters";
|
||||
import { getQueryDict } from "utils/filterConversion";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { mockModule, getLocalVue } from "jest/helpers";
|
||||
import { mockModule, getLocalVue } from "tests/jest/helpers";
|
||||
import { userStore } from "store/userStore";
|
||||
import Vuex from "vuex";
|
||||
import HistoryNavigation from "./HistoryNavigation";
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ import { shallowMount } from "@vue/test-utils";
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import SelectionOperations from "./SelectionOperations.vue";
|
||||
import MockConfigProvider from "components/providers/MockConfigProvider";
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import HistorySelectionStatus from "./SelectionStatus.vue";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { mockModule, getLocalVue } from "jest/helpers";
|
||||
import { mockModule, getLocalVue } from "tests/jest/helpers";
|
||||
import { userStore } from "store/userStore";
|
||||
import Vuex from "vuex";
|
||||
import DetailsLayout from "./DetailsLayout";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import SelectorModal from "./SelectorModal";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { createPinia } from "pinia";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MultipleView from "./MultipleView";
|
||||
import MockCurrentUser from "components/providers/MockCurrentUser";
|
||||
import MockUserHistories from "components/providers/MockUserHistories";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import Index from "./Index.vue";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import ToLink from "./ToLink.vue";
|
||||
import flushPromises from "flush-promises";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import ToRemoteFile from "./ToRemoteFile.vue";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import axios from "axios";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import HistoryImport from "./HistoryImport.vue";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import axios from "axios";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import SharingIndicators from "./SharingIndicators";
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import filtersMixin from "./filtersMixin";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import InteractiveTools from "./InteractiveTools";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import flushPromises from "flush-promises";
|
||||
import testInteractiveToolsResponse from "./testData/testInteractiveToolsResponse";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import JobInformation from "./JobInformation";
|
||||
import jobResponse from "./testData/jobInformationResponse.json";
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { mount } from "@vue/test-utils";
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FolderDetails from "./FolderDetails";
|
||||
import apiResponse from "./response.test.json";
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import { getAppRoot } from "onload/loadConfig";
|
||||
import { Services } from "../services";
|
||||
import LibraryDataset from "./LibraryDataset";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import { safePath } from "utils/redirect";
|
||||
import MountTarget from "./ChangePassword";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MountTarget from "./LoginForm";
|
||||
|
||||
const localVue = getLocalVue(true);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MountTarget from "./LoginIndex";
|
||||
|
||||
const localVue = getLocalVue(true);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MountTarget from "./NewUserConfirmation";
|
||||
|
||||
const localVue = getLocalVue(true);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MountTarget from "./RegisterForm";
|
||||
|
||||
const localVue = getLocalVue(true);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import axios from "axios";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import HistoryDatasetDisplay from "./HistoryDatasetDisplay.vue";
|
||||
import { typesAndMappingResponse } from "components/Datatypes/test_fixtures";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MountTarget from "./WorkflowDisplay";
|
||||
|
||||
const localVue = getLocalVue(true);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vuex from "vuex";
|
||||
import { default as Masthead } from "./Masthead.vue";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import { WindowManager } from "layout/window-manager";
|
||||
import { loadWebhookMenuItems } from "./_webhooks";
|
||||
import { userStore } from "store/userStore";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MastheadItem from "./MastheadItem.vue";
|
||||
|
||||
describe("MastheadItem.vue", () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Vuex from "vuex";
|
||||
import QuotaMeter from "./QuotaMeter.vue";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import { userStore } from "store/userStore";
|
||||
import { configStore } from "store/configStore";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount, mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import testData from "./testData.json";
|
||||
import NewUserWelcome from "./NewUserWelcome.vue";
|
||||
import { getResource } from "./getResource";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { mockModule, getLocalVue } from "jest/helpers";
|
||||
import { mockModule, getLocalVue } from "tests/jest/helpers";
|
||||
import { userStore } from "store/userStore";
|
||||
import Vuex from "vuex";
|
||||
import FavoritesButton from "./FavoritesButton";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import Tool from "./Tool";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import DelayedInput from "components/Common/DelayedInput";
|
||||
import ToolSearch from "./ToolSearch";
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import ToolSection from "./ToolSection";
|
||||
|
||||
import { useConfig } from "composables/config";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Vuex from "vuex";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import axios from "axios";
|
||||
import { filterToolSections, filterTools } from "./utilities";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import SavedRulesSelector from "components/RuleBuilder/SavedRulesSelector";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import MockConfigProvider from "components/providers/MockConfigProvider";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import StsDownloadButton from "./StsDownloadButton";
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
|
||||
@@ -3,7 +3,7 @@ import { mount } from "@vue/test-utils";
|
||||
import Tags from "./Tags";
|
||||
import { TagService } from "./tagService";
|
||||
import { tagStore } from "store/tagStore";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
|
||||
jest.mock("./tagService");
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue, mockModule } from "jest/helpers";
|
||||
import { getLocalVue, mockModule } from "tests/jest/helpers";
|
||||
import ToolCard from "./ToolCard";
|
||||
import Vuex from "vuex";
|
||||
import { userStore } from "store/userStore";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import flushPromises from "flush-promises";
|
||||
import ToolFooter from "./ToolFooter";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import axios from "axios";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue, mockModule } from "jest/helpers";
|
||||
import { getLocalVue, mockModule } from "tests/jest/helpers";
|
||||
import ToolForm from "./ToolForm";
|
||||
import MockCurrentUser from "../providers/MockCurrentUser";
|
||||
import MockConfigProvider from "../providers/MockConfigProvider";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import ToolHelp from "./ToolHelp";
|
||||
import { mount } from "@vue/test-utils";
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import testToolsListResponse from "../testData/toolsList";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import axios from "axios";
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import flushPromises from "flush-promises";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import Index from "./Index";
|
||||
|
||||
jest.mock("app");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import Monitor from "./Monitor";
|
||||
|
||||
jest.mock("app");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import InstallationSettings from "./InstallationSettings";
|
||||
|
||||
jest.mock("app");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import RepositoryTools from "./RepositoryTools";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import ServerSelection from "./ServerSelection";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import TourList from "./TourList.vue";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import axios from "axios";
|
||||
|
||||
@@ -4,7 +4,7 @@ import UploadModal from "./UploadModal";
|
||||
import UploadModalContent from "./UploadModalContent";
|
||||
import store from "../../store";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
|
||||
import MockCurrentUser from "../providers/MockCurrentUser";
|
||||
import MockCurrentHistory from "../providers/MockCurrentHistory";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import flushPromises from "flush-promises";
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
|
||||
import { default as CloudAuth } from "./CloudAuth";
|
||||
import CloudAuthItem from "./CloudAuthItem";
|
||||
|
||||
@@ -3,7 +3,7 @@ import MockConfigProvider from "components/providers/MockConfigProvider";
|
||||
import MockCurrentUser from "components/providers/MockCurrentUser";
|
||||
import MockProvider from "components/providers/MockProvider";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import DiskUsageSummary from "./DiskUsageSummary";
|
||||
import { userStore } from "../../../store/userStore/userStore";
|
||||
import Vuex from "vuex";
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import CleanupOperationSummary from "./CleanupOperationSummary";
|
||||
import { CleanableSummary, CleanupOperation, CleanupResult } from "./model";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import CleanupResultDialog from "./CleanupResultDialog";
|
||||
import { CleanupResult } from "./model";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import flushPromises from "flush-promises";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import { CleanableSummary, CleanupOperation, CleanupResult } from "./model";
|
||||
import ReviewCleanupDialog from "./ReviewCleanupDialog";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import QuotaUsageBar from "./QuotaUsageBar";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import QuotaUsageSummary from "./QuotaUsageSummary";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import UserDeletion from "./UserDeletion";
|
||||
|
||||
const localVue = getLocalVue(true);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import UtcDate from "./UtcDate.vue";
|
||||
|
||||
describe("UTCDate component", () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import DisplayApplications from "./DisplayApplications";
|
||||
import MockProvider from "components/providers/MockProvider";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormDefault from "./FormDefault";
|
||||
import { ActiveOutputs } from "components/Workflow/Editor/modules/outputs";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import FormOutputLabel from "./FormOutputLabel";
|
||||
import { ActiveOutputs } from "components/Workflow/Editor/modules/outputs";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue, mockModule } from "jest/helpers";
|
||||
import { getLocalVue, mockModule } from "tests/jest/helpers";
|
||||
import FormTool from "./FormTool";
|
||||
import MockCurrentUser from "components/providers/MockCurrentUser";
|
||||
import MockConfigProvider from "components/providers/MockConfigProvider";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import Index from "./Index";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
@@ -60,14 +60,14 @@ describe("Index", () => {
|
||||
}
|
||||
|
||||
it("resolved datatypes", async () => {
|
||||
mountAndWaitForCreated();
|
||||
await mountAndWaitForCreated();
|
||||
expect(wrapper.datatypesMapper).not.toBeNull();
|
||||
expect(wrapper.datatypes).not.toBeNull();
|
||||
expect(wrapper.canvasManager).not.toBeNull();
|
||||
});
|
||||
|
||||
it("routes to run to download URL and respects Galaxy prefix", async () => {
|
||||
mountAndWaitForCreated();
|
||||
await mountAndWaitForCreated();
|
||||
Object.defineProperty(window, "location", {
|
||||
value: "original",
|
||||
writable: true,
|
||||
@@ -77,7 +77,7 @@ describe("Index", () => {
|
||||
});
|
||||
|
||||
it("tracks changes to annotations", async () => {
|
||||
mountAndWaitForCreated();
|
||||
await mountAndWaitForCreated();
|
||||
expect(wrapper.vm.hasChanges).toBeFalsy();
|
||||
await wrapper.setData({ annotation: "original annotation" });
|
||||
expect(wrapper.vm.hasChanges).toBeTruthy();
|
||||
@@ -92,7 +92,7 @@ describe("Index", () => {
|
||||
});
|
||||
|
||||
it("tracks changes to name", async () => {
|
||||
mountAndWaitForCreated();
|
||||
await mountAndWaitForCreated();
|
||||
expect(wrapper.hasChanges).toBeFalsy();
|
||||
await wrapper.setData({ name: "original name" });
|
||||
expect(wrapper.vm.hasChanges).toBeTruthy();
|
||||
@@ -107,7 +107,7 @@ describe("Index", () => {
|
||||
});
|
||||
|
||||
it("prevents navigation only if hasChanges", async () => {
|
||||
mountAndWaitForCreated();
|
||||
await mountAndWaitForCreated();
|
||||
expect(wrapper.vm.hasChanges).toBeFalsy();
|
||||
await wrapper.vm.onChange();
|
||||
const confirmationRequired = wrapper.emitted()["update:confirmation"][0][0];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import Lint from "./Lint";
|
||||
import { getUntypedWorkflowParameters } from "./modules/parameters";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import Node from "./Node";
|
||||
import flushPromises from "flush-promises";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import Options from "./Options";
|
||||
|
||||
const localVue = getLocalVue();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
jest.mock("./modules/services");
|
||||
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import RefactorConfirmationModal from "./RefactorConfirmationModal";
|
||||
import { refactor } from "./modules/services";
|
||||
import flushPromises from "flush-promises";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { mount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import ZoomControl from "./ZoomControl";
|
||||
|
||||
jest.mock("app");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import axios from "axios";
|
||||
import flushPromises from "flush-promises";
|
||||
|
||||
@@ -2,7 +2,7 @@ import InvocationsList from "./InvocationsList";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import mockInvocationData from "./test/json/invocation.json";
|
||||
import { parseISO, formatDistanceToNow } from "date-fns";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import WorkflowRun from "./WorkflowRun.vue";
|
||||
import { shallowMount, createLocalVue } from "@vue/test-utils";
|
||||
import { watchForChange } from "jest/helpers";
|
||||
import { watchForChange } from "tests/jest/helpers";
|
||||
|
||||
import sampleRunData1 from "./testdata/run1.json";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import WorkflowDropdown from "./WorkflowDropdown";
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import flushPromises from "flush-promises";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import flushPromises from "flush-promises";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import WorkflowIndexActions from "./WorkflowIndexActions";
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import { ROOT_COMPONENT } from "utils/navigation";
|
||||
import VueRouter from "vue-router";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import WorkflowRunButton from "./WorkflowRunButton";
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import { ROOT_COMPONENT } from "utils/navigation";
|
||||
|
||||
import "jest-location-mock";
|
||||
|
||||
@@ -2,7 +2,7 @@ import Workflows from "../Workflow/WorkflowList";
|
||||
import { mount } from "@vue/test-utils";
|
||||
import axios from "axios";
|
||||
import MockAdapter from "axios-mock-adapter";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import flushPromises from "flush-promises";
|
||||
import { parseISO, formatDistanceToNow } from "date-fns";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import WorkflowInvocationState from "./WorkflowInvocationState";
|
||||
import { shallowMount } from "@vue/test-utils";
|
||||
import { getLocalVue } from "jest/helpers";
|
||||
import { getLocalVue } from "tests/jest/helpers";
|
||||
import Vuex from "vuex";
|
||||
import invocationData from "../Workflow/test/json/invocation.json";
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user