test: add service tests for DirectusClient, DirectusError, categories, files, listings, and notifications
This commit is contained in:
@@ -93,17 +93,25 @@
|
||||
</div>
|
||||
|
||||
<script type="module">
|
||||
import { renderResults } from './test-runner.js'
|
||||
import { renderResults, runAsyncTests } from './test-runner.js'
|
||||
|
||||
const container = document.getElementById('results')
|
||||
|
||||
// Run all test files
|
||||
async function runTests() {
|
||||
try {
|
||||
// Sync tests
|
||||
await import('./helpers.test.js')
|
||||
await import('./i18n.test.js')
|
||||
await import('./router.test.js')
|
||||
|
||||
// Service tests (sync + async)
|
||||
await import('./client.test.js')
|
||||
await import('./services.test.js')
|
||||
|
||||
// Run queued async tests
|
||||
await runAsyncTests()
|
||||
|
||||
// Clear loading message and render results
|
||||
container.querySelector('.loading').remove()
|
||||
renderResults(container)
|
||||
|
||||
Reference in New Issue
Block a user