Solution to #6: Drop the tests README pointer to a coordination file that is not in this repository #17
@@ -21,4 +21,4 @@ npm run e2e # casos de datos: Excel→gráfico y carpetas vig
|
||||
Las carpetas del test son **OPFS** (los pickers nativos exigen gesto de
|
||||
usuario); los handles se registran en el IndexedDB de Elffuss igual que los
|
||||
reales. Esto valida la plataforma — la calidad del modelo se evalúa con los
|
||||
casos de `../coordinacion/ERRORES.md`.
|
||||
casos de prueba.
|
||||
|
||||
12
tests/acceptance/6/CRITERIA.json
Normal file
12
tests/acceptance/6/CRITERIA.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"schema": "elffuss-t2t/criteria@2",
|
||||
"issue": 6,
|
||||
"criteria": [
|
||||
{
|
||||
"index": 1,
|
||||
"tests": [
|
||||
"tests/acceptance/6/criteria.test.js::criterion 1"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
10
tests/acceptance/6/criteria.test.js
Normal file
10
tests/acceptance/6/criteria.test.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { test } from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
import { readFileSync } from 'node:fs'
|
||||
const text = readFileSync(new URL('../../../tests/README.md', import.meta.url), 'utf8') // the content of tests/README.md
|
||||
|
||||
test('criterion 1', () => {
|
||||
// tests/README.md contains no reference to `coordinacion/` and still states that the test folders are OPFS folders.
|
||||
assert.strictEqual(text.includes('coordinacion/'), false)
|
||||
assert.strictEqual(text.includes('OPFS'), true)
|
||||
})
|
||||
Reference in New Issue
Block a user