1
0
Fork 0
freesewing/sites/backend/tests/index.mjs

29 lines
919 B
JavaScript
Raw Normal View History

2022-11-07 19:06:58 +01:00
import { userTests } from './user.mjs'
2022-11-17 20:41:21 +01:00
import { mfaTests } from './mfa.mjs'
import { accountTests } from './account.mjs'
2022-11-07 19:06:58 +01:00
import { apikeyTests } from './apikey.mjs'
import { setTests } from './set.mjs'
import { curatedSetTests } from './curated-set.mjs'
import { patternTests } from './pattern.mjs'
import { subscriberTests } from './subscriber.mjs'
2023-08-13 09:39:05 +02:00
import { flowTests } from './flow.mjs'
2022-11-07 19:06:58 +01:00
import { setup } from './shared.mjs'
const runTests = async (...params) => {
2023-08-18 11:09:53 +02:00
await userTests(...params)
await mfaTests(...params)
await apikeyTests(...params)
await accountTests(...params)
await setTests(...params)
2023-08-18 11:09:53 +02:00
await curatedSetTests(...params)
await patternTests(...params)
await subscriberTests(...params)
await flowTests(...params)
2022-11-07 19:06:58 +01:00
}
// Load initial data required for tests
const { chai, config, expect, store } = await setup()
2022-11-07 19:06:58 +01:00
// Note run the tests using this data
runTests(chai, config, expect, store)