mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-20 15:33:54 +00:00
test(desktop): run scripts/ tests in vitest
This commit is contained in:
parent
79061f447c
commit
47d56b802a
3 changed files with 5 additions and 6 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -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}']
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue