All files / test/blong-int-adapter/mysql server.ts

100% Statements 29/29
100% Branches 2/2
100% Functions 1/1
100% Lines 29/29

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 301x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import {realm} from '@feasibleone/blong';
 
export default realm(blong => ({
    url: import.meta.url,
    validation: blong.type.Object({}),
    children: [
        // blong-core brings the resource/type/triple graph schema so the knex
        // adapter tests can exercise the resource-backed CRUD + graph-edge
        // features (core_resource / core_type / core_triple tables).
        async function core() {
            return import('@feasibleone/blong-core/server.ts');
        },
        './test',
    ],
    config: {
        default: {
            // The `core` child realm (resource/type/triple graph) — the config
            // block gates its activation (a child with no config block is skipped).
            core: {},
        },
        microservice: {
            adapter: true,
        },
        'adapter.mysql': {
            adapter: true,
            test: true,
        },
    },
}));