diff --git a/tests/unit/fixtures/production-store.js b/tests/unit/fixtures/production-store.js index da9f3f0704..610bf0ccde 100644 --- a/tests/unit/fixtures/production-store.js +++ b/tests/unit/fixtures/production-store.js @@ -18,6 +18,9 @@ export default { { id: 'asset-type-1', name: 'Characters' }, { id: 'asset-type-2', name: 'Sets' } ], + productionShotTaskTypes: () => [ + { id: 'task-type-1', name: 'Animation' }, + ], isTVShow: () => false }, actions: {} diff --git a/tests/unit/lib/array.spec.js b/tests/unit/lib/array.spec.js index 8cd7933b84..95bfb6e453 100644 --- a/tests/unit/lib/array.spec.js +++ b/tests/unit/lib/array.spec.js @@ -1,6 +1,6 @@ import { intersection -} from '../../../src/lib/array' +} from '@/lib/array' describe('array', () => { it('intersection', () => { diff --git a/tests/unit/lib/auth.spec.js b/tests/unit/lib/auth.spec.js index f180692e9d..dfd9363420 100644 --- a/tests/unit/lib/auth.spec.js +++ b/tests/unit/lib/auth.spec.js @@ -1,4 +1,4 @@ -import auth from '../../../src/lib/auth' +import auth from '@/lib/auth' describe('auth', () => { test('isPasswordValid', () => { diff --git a/tests/unit/lib/filtering.spec.js b/tests/unit/lib/filtering.spec.js index 7c9c024119..739f42eaa2 100644 --- a/tests/unit/lib/filtering.spec.js +++ b/tests/unit/lib/filtering.spec.js @@ -1,5 +1,3 @@ -/* eslint-disable no-undef */ - import { applyFilters, getKeyWords, diff --git a/tests/unit/lib/func.spec.js b/tests/unit/lib/func.spec.js index 4c3bb2bb50..2743c29a09 100644 --- a/tests/unit/lib/func.spec.js +++ b/tests/unit/lib/func.spec.js @@ -1,4 +1,4 @@ -import func from '../../../src/lib/func' +import func from '@/lib/func' describe('func', () => { test('runPromiseMapAsSeries', () => new Promise((done) => { diff --git a/tests/unit/lib/indexing.spec.js b/tests/unit/lib/indexing.spec.js index 98bf92cee9..99d4db84d2 100644 --- a/tests/unit/lib/indexing.spec.js +++ b/tests/unit/lib/indexing.spec.js @@ -1,11 +1,10 @@ -/* eslint-disable no-undef */ import { buildNameIndex, buildAssetIndex, buildShotIndex, buildTaskIndex, indexSearch -} from '../../../src/lib/indexing' +} from '@/lib/indexing' describe('lib/indexing', () => { it('buildNameIndex', () => { diff --git a/tests/unit/lib/lang.spec.js b/tests/unit/lib/lang.spec.js index 0170dbe66a..5864aa8f82 100644 --- a/tests/unit/lib/lang.spec.js +++ b/tests/unit/lib/lang.spec.js @@ -1,9 +1,9 @@ import moment from 'moment-timezone' -import lang from '../../../src/lib/lang' -import timezone from '../../../src/lib/timezone' +import lang from '@/lib/lang' +import timezone from '@/lib/timezone' -import i18n from '../../../src/lib/i18n' -import store from '../../../src/store' +import i18n from '@/lib/i18n' +import store from '@/store' class ColorHash { constructor (colorData) { diff --git a/tests/unit/lib/models.spec.js b/tests/unit/lib/models.spec.js index a36c66ad59..ca2080572e 100644 --- a/tests/unit/lib/models.spec.js +++ b/tests/unit/lib/models.spec.js @@ -1,4 +1,3 @@ -import test from '../../../src/lib/string' import { addToIdList, removeFromIdList, @@ -7,9 +6,8 @@ import { findModelInList, populateTask, updateModelFromList, - remove, removeModelFromList -} from '../../../src/lib/models' +} from '@/lib/models' describe('lib/helpers', () => { it('populateTask', () => { diff --git a/tests/unit/lib/query.spec.js b/tests/unit/lib/query.spec.js index 255dbae21f..7a2568e2c7 100644 --- a/tests/unit/lib/query.spec.js +++ b/tests/unit/lib/query.spec.js @@ -1,4 +1,4 @@ -import { buildQueryString } from '../../../src/lib/query' +import { buildQueryString } from '@/lib/query' describe('query', () => { describe('Mount', () => { diff --git a/tests/unit/lib/stats.spec.js b/tests/unit/lib/stats.spec.js index 071487563a..5caa49b36e 100644 --- a/tests/unit/lib/stats.spec.js +++ b/tests/unit/lib/stats.spec.js @@ -2,7 +2,7 @@ import { computeStats, getChartData, getChartColors -} from '../../../src/lib/stats' +} from '@/lib/stats' const taskMap = new Map(Object.entries({ 'task-1': { diff --git a/tests/unit/lib/string.spec.js b/tests/unit/lib/string.spec.js index 2ae9f3426f..02a5bad284 100644 --- a/tests/unit/lib/string.spec.js +++ b/tests/unit/lib/string.spec.js @@ -1,4 +1,4 @@ -import stringHelpers from '../../../src/lib/string' +import stringHelpers from '@/lib/string' describe('lib/string', () => { it('generateNextName', () => { diff --git a/tests/unit/lib/video.spec.js b/tests/unit/lib/video.spec.js index d7e5f2f7d9..c468a4419d 100644 --- a/tests/unit/lib/video.spec.js +++ b/tests/unit/lib/video.spec.js @@ -1,11 +1,9 @@ -/* eslint-disable no-undef */ - import { formatFrame, formatTime, frameToSeconds, roundToFrame -} from '../../../src/lib/video' +} from '@/lib/video' describe('video', () => { it('roundToFrame', () => { diff --git a/tests/unit/modals/buildfiltermodal.spec.js b/tests/unit/modals/buildfiltermodal.spec.js index 7a2e99648a..cb3791643f 100644 --- a/tests/unit/modals/buildfiltermodal.spec.js +++ b/tests/unit/modals/buildfiltermodal.spec.js @@ -1,12 +1,12 @@ -/* eslint-disable no-undef */ - import { shallowMount, createLocalVue } from '@vue/test-utils' import Vuex from 'vuex' import VueRouter from 'vue-router' -import i18n from '../../../src/lib/i18n' -import BuildFilterModal from '../../../src/components/modals/BuildFilterModal' -import productionStoreFixture from '../fixtures/production-store.js' +import i18n from '@/lib/i18n' + +import BuildFilterModal from '@/components/modals/BuildFilterModal.vue' + +import productionStoreFixture from '../fixtures/production-store' const localVue = createLocalVue() localVue.use(Vuex) diff --git a/tests/unit/modals/shothistorymodal.spec.js b/tests/unit/modals/shothistorymodal.spec.js index 60cd50bda0..947f9ba349 100644 --- a/tests/unit/modals/shothistorymodal.spec.js +++ b/tests/unit/modals/shothistorymodal.spec.js @@ -1,10 +1,13 @@ import Vue from 'vue' import { shallowMount, createLocalVue } from '@vue/test-utils' import Vuex from 'vuex' -import i18n from '../../../src/lib/i18n' -import ShotHistoryModal from '../../../src/components/modals/ShotHistoryModal' -import TableInfo from '../../../src/components/widgets/TableInfo' -import peopleStoreFixture from '../fixtures/person-store.js' + +import i18n from '@/lib/i18n' + +import ShotHistoryModal from '@/components/modals/ShotHistoryModal.vue' +import TableInfo from '@/components/widgets/TableInfo.vue' + +import peopleStoreFixture from '../fixtures/person-store' const localVue = createLocalVue() localVue.use(Vuex) diff --git a/tests/unit/store/breakdown.spec.js b/tests/unit/store/breakdown.spec.js index f36e197409..7b31b7d3e4 100644 --- a/tests/unit/store/breakdown.spec.js +++ b/tests/unit/store/breakdown.spec.js @@ -1,8 +1,8 @@ import { createLocalVue } from '@vue/test-utils' import Vuex from 'vuex' -import store from '../../../src/store/modules/breakdown' -import breakdownApi from '../../../src/store/api/breakdown' +import store from '@/store/modules/breakdown' +import breakdownApi from '@/store/api/breakdown' breakdownApi.updateCasting = vi.fn() breakdownApi.getSequenceCasting = vi.fn() diff --git a/tests/unit/store/departments.spec.js b/tests/unit/store/departments.spec.js index 8b7d3adfc9..f7bb9d371c 100644 --- a/tests/unit/store/departments.spec.js +++ b/tests/unit/store/departments.spec.js @@ -1,4 +1,4 @@ -import store from '../../../src/store/modules/departments' +import store from '@/store/modules/departments' const departments = [ { diff --git a/tests/unit/store/news.spec.js b/tests/unit/store/news.spec.js index c74d62e113..143fd5267d 100644 --- a/tests/unit/store/news.spec.js +++ b/tests/unit/store/news.spec.js @@ -1,4 +1,4 @@ -import store from '../../../src/store/modules/news' +import store from '@/store/modules/news' const timezone = 'Europe/Paris' diff --git a/tests/unit/store/productions.spec.js b/tests/unit/store/productions.spec.js index 8c80de5f13..6e71672988 100644 --- a/tests/unit/store/productions.spec.js +++ b/tests/unit/store/productions.spec.js @@ -1,6 +1,6 @@ -import store from '../../../src/store/modules/productions' +import store from '@/store/modules/productions' -import productionApi from '../../../src/store/api/productions.js' +import productionApi from '@/store/api/productions.js' import { ADD_METADATA_DESCRIPTOR_END, ADD_PRODUCTION, diff --git a/tests/unit/store/studios.spec.js b/tests/unit/store/studios.spec.js index 1fe40a2b05..f441a6ad1e 100644 --- a/tests/unit/store/studios.spec.js +++ b/tests/unit/store/studios.spec.js @@ -1,4 +1,4 @@ -import store from '../../../src/store/modules/studios' +import store from '@/store/modules/studios' const studios = [ {