feat: import job runner in-memory

- Añade ImportRunner en memoria con concurrencia configurable
- Tests TDD para enqueue, concurrencia y comportamiento tras stop
- Actualiza /api/import/scan para encolar jobs y registrar errores
- Ajusta tsconfig.json para incluir tests en comprobaciones de tipo
This commit is contained in:
2026-02-08 22:24:56 +01:00
parent 1a42422c7e
commit 4298b003d9
20 changed files with 696 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<datafile>
<header>
<name>Sample No-Intro DAT</name>
</header>
<game name="Simple ROM">
<rom name="simple-rom.bin" size="16" crc="DEADBEEF" md5="00000000000000000000000000000000" sha1="0000000000000000000000000000000000000000" />
</game>
</datafile>

1
backend/tests/fixtures/empty/.gitkeep vendored Normal file
View File

@@ -0,0 +1 @@
// placeholder to ensure directory exists; scanner ignores dotfiles

View File

@@ -0,0 +1 @@
NESTED-ROM-TEST

1
backend/tests/fixtures/simple-rom.bin vendored Normal file
View File

@@ -0,0 +1 @@
SIMPLE-ROM-TEST