mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-19 09:50:33 +03:00
add @tests alias
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { it, describe, expect } from 'vitest'
|
||||
import { mountDefault } from '../helpers.js'
|
||||
import { mountDefault } from '@tests/helpers.js'
|
||||
|
||||
describe('Search Slot Scope', () => {
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { it, describe, expect } from 'vitest'
|
||||
import { selectWithProps } from '../helpers.js'
|
||||
import { selectWithProps } from '@tests/helpers.js'
|
||||
import { shallowMount } from '@vue/test-utils'
|
||||
import vSelect from '@/components/Select.vue'
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { it, describe, expect, vi, afterEach } from 'vitest'
|
||||
import pointerScroll from '@/mixins/pointerScroll.js'
|
||||
import { mountDefault } from '../helpers.js'
|
||||
import { mountDefault } from '@tests/helpers.js'
|
||||
|
||||
describe('Automatic Scrolling', () => {
|
||||
let spy
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { it, describe, expect } from 'vitest'
|
||||
import { defineComponent } from 'vue'
|
||||
import { selectWithProps } from '../helpers.js'
|
||||
import { selectWithProps } from '@tests/helpers.js'
|
||||
|
||||
describe('Components API', () => {
|
||||
it('swap the Deselect component', () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { it, describe, expect } from 'vitest'
|
||||
import { selectTag, selectWithProps } from '../helpers.js'
|
||||
import { selectTag, selectWithProps } from '@tests/helpers.js'
|
||||
|
||||
describe('CreateOption When Tagging Is Enabled', () => {
|
||||
it('can select the current search text as a string', async () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { it, describe, expect, vi } from 'vitest'
|
||||
import { mountDefault, selectWithProps } from '../helpers.js'
|
||||
import { mountDefault, selectWithProps } from '@tests/helpers.js'
|
||||
|
||||
describe('Removing values', () => {
|
||||
it('can remove the given tag when its close icon is clicked', async () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { it, describe, expect, vi, afterEach } from 'vitest'
|
||||
import { selectWithProps } from '../helpers.js'
|
||||
import { selectWithProps } from '@tests/helpers.js'
|
||||
import OpenIndicator from '@/components/OpenIndicator.vue'
|
||||
import VueSelect from '@/components/Select.vue'
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { it, describe, expect, vi, afterEach } from 'vitest'
|
||||
import typeAheadPointer from '@/mixins/typeAheadPointer.js'
|
||||
import { mountDefault } from '../helpers.js'
|
||||
import { mountDefault } from '@tests/helpers.js'
|
||||
|
||||
describe('Custom Keydown Handlers', () => {
|
||||
let spy
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { it, describe, expect, vi } from 'vitest'
|
||||
import { shallowMount } from '@vue/test-utils'
|
||||
import VueSelect from '@/components/Select.vue'
|
||||
import { selectWithProps } from '../helpers.js'
|
||||
import { selectWithProps } from '@tests/helpers.js'
|
||||
|
||||
describe('Labels', () => {
|
||||
it('can generate labels using a custom label key', () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { it, describe, expect, vi, afterEach } from 'vitest'
|
||||
import { shallowMount } from '@vue/test-utils'
|
||||
import VueSelect from '@/components/Select.vue'
|
||||
import { mountDefault } from '../helpers.js'
|
||||
import { mountDefault } from '@tests/helpers.js'
|
||||
|
||||
describe('Reset on options change', () => {
|
||||
it('should not reset the selected value by default when the options property changes', async () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { it, describe, expect } from 'vitest'
|
||||
import { mount, shallowMount } from '@vue/test-utils'
|
||||
import VueSelect from '@/components/Select.vue'
|
||||
import { mountDefault } from '../helpers.js'
|
||||
import { mountDefault } from '@tests/helpers.js'
|
||||
|
||||
describe('When reduce prop is defined', () => {
|
||||
it('determines when a reducer has been supplied', async () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { it, describe, expect } from 'vitest'
|
||||
import { searchSubmit, selectWithProps } from '../helpers.js'
|
||||
import { searchSubmit, selectWithProps } from '@tests/helpers.js'
|
||||
|
||||
describe('Selectable prop', () => {
|
||||
it('should select selectable option if clicked', async () => {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { it, describe, expect, vi, beforeEach, afterEach } from 'vitest'
|
||||
import { mount, shallowMount } from '@vue/test-utils'
|
||||
import VueSelect from '@/components/Select.vue'
|
||||
import typeAheadPointer from '@/mixins/typeAheadPointer.js'
|
||||
import { mountDefault } from '../helpers.js'
|
||||
import { mountDefault } from '@tests/helpers.js'
|
||||
|
||||
describe('VS - Selecting Values', () => {
|
||||
let defaultProps
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { it, test, describe, expect, vi } from 'vitest'
|
||||
import { h } from 'vue'
|
||||
import { mountDefault } from '../helpers.js'
|
||||
import { mountDefault } from '@tests/helpers.js'
|
||||
|
||||
describe('Scoped Slots', () => {
|
||||
it('receives an option object to the selected-option-container slot', () => {
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
searchSubmit,
|
||||
selectTag,
|
||||
selectWithProps,
|
||||
} from '../helpers.js'
|
||||
} from '@tests/helpers.js'
|
||||
import VueSelect from '@/components/Select.vue'
|
||||
|
||||
describe('When Tagging Is Enabled', () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { it, describe, expect } from 'vitest'
|
||||
import { shallowMount } from '@vue/test-utils'
|
||||
import VueSelect from '@/components/Select.vue'
|
||||
import { mountDefault } from '../helpers.js'
|
||||
import { mountDefault } from '@tests/helpers.js'
|
||||
|
||||
describe('Moving the Typeahead Pointer', () => {
|
||||
it('should set the pointer to zero when the filteredOptions watcher is called', async () => {
|
||||
|
||||
Reference in New Issue
Block a user