test(desktop): run scripts/ tests in vitest

This commit is contained in:
ethernet 2026-07-13 13:25:44 -04:00
parent 79061f447c
commit 47d56b802a
3 changed files with 5 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import assert from 'node:assert/strict'
import fs from 'node:fs'
import os from 'node:os'
import path from 'node:path'
import test from 'node:test'
import { test } from 'vitest'
import { checkDistBuilt } from '../scripts/assert-dist-built.mjs'

View file

@ -2,7 +2,7 @@ import assert from 'node:assert/strict'
import fs from 'node:fs'
import os from 'node:os'
import path from 'node:path'
import test from 'node:test'
import { test } from 'vitest'
import beforePack, { cleanStaleAppOutDir } from '../scripts/before-pack.mjs'

View file

@ -1,6 +1,5 @@
import { defineConfig, TestProjectConfiguration } from 'vitest/config'
import react from '@vitejs/plugin-react'
import path from 'path'
import type { TestProjectConfiguration } from 'vitest/config';
import { defineConfig } from 'vitest/config'
const reactUi: TestProjectConfiguration = {
extends: './vite.config.ts',
@ -17,7 +16,7 @@ const electronNative: TestProjectConfiguration = {
test: {
name: 'electron',
environment: 'node',
include: ['electron/**/*.test.ts']
include: ['electron/**/*.test.ts', 'scripts/**.test.{ts,mjs}']
}
}