2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +03:00

build(vite): replace webpack with Vite, add Typescript (#1594)

BREAKING: mixins are no longer exported from the index (and will likely be converted to hooks)
This commit is contained in:
Jeff Sagal
2022-07-18 09:33:46 -07:00
committed by GitHub
parent 92abcbf1f8
commit 98c278b2bb
51 changed files with 3470 additions and 10062 deletions
+7 -6
View File
@@ -1,5 +1,6 @@
import { it, test, describe, expect, vi } from 'vitest'
import { h } from 'vue'
import { mountDefault } from '../helpers'
import { mountDefault } from '@tests/helpers.js'
describe('Scoped Slots', () => {
it('receives an option object to the selected-option-container slot', () => {
@@ -68,7 +69,7 @@ describe('Scoped Slots', () => {
})
it('noOptions slot receives the current search text', async () => {
const noOptions = jest.fn()
const noOptions = vi.fn()
const Select = mountDefault(
{},
{
@@ -88,7 +89,7 @@ describe('Scoped Slots', () => {
})
test('header slot props', async () => {
const header = jest.fn()
const header = vi.fn()
const Select = mountDefault(
{},
{
@@ -106,7 +107,7 @@ describe('Scoped Slots', () => {
})
test('footer slot props', async () => {
const footer = jest.fn()
const footer = vi.fn()
const Select = mountDefault(
{},
{
@@ -124,7 +125,7 @@ describe('Scoped Slots', () => {
})
test('list-header slot props', async () => {
const header = jest.fn()
const header = vi.fn()
const Select = mountDefault(
{},
{
@@ -142,7 +143,7 @@ describe('Scoped Slots', () => {
})
test('list-footer slot props', async () => {
const footer = jest.fn()
const footer = vi.fn()
const Select = mountDefault(
{},
{