apps/web/test/web.test.js
Metadata
- Purpose: Source artifact in the anchor-msp system.
- Domain:
applications - Language:
js - Bytes: 381
- Lines: 13
- Content hash (short):
9867f4d7 - Source (start): apps/web/test/web.test.js:1
- Source (end): apps/web/test/web.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('web app has root page', () => {
const file = path.resolve(currentDir, '../app/page.tsx');
assert.equal(fs.existsSync(file), true);
});