packages/contracts/test/contracts.test.js
Metadata
- Purpose: Shared contracts package with schemas, events, or OpenAPI artifacts.
- Domain:
shared-packages - Language:
js - Bytes: 396
- Lines: 13
- Content hash (short):
f8cdf114 - Source (start): packages/contracts/test/contracts.test.js:1
- Source (end): packages/contracts/test/contracts.test.js:13
Indexed Symbols
No indexed functions/methods detected in this file.
Markdown Headings (if applicable)
No markdown headings detected.
Source Preview
import test from 'node:test';
import assert from 'node:assert/strict';
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const currentDir = path.dirname(fileURLToPath(import.meta.url));
test('openapi spec file exists', () => {
const file = path.resolve(currentDir, '../src/openapi/openapi.yaml');
assert.equal(fs.existsSync(file), true);
});