Internationalization
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { loadI18n } from '../test-support/i18n.js';
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
@@ -91,6 +92,7 @@ function createHarness() {
|
||||
async function loadModule(relativePath, harness) {
|
||||
const sourcePath = path.join(root, relativePath);
|
||||
const source = await fs.readFile(sourcePath, 'utf8');
|
||||
await loadI18n(harness.context);
|
||||
vm.runInNewContext(source, harness.context, { filename: sourcePath });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user