Skip to content

Commit c9f4155

Browse files
committed
test(playground): read the repository's policy file in the engine test
The examples test read public/playground/sqlquack.toml, which only the site build copies there, and CI tests the engine before it builds the site. It now reads sqlquack.toml at the repository root, as the other tests in the file do.
1 parent 4070812 commit c9f4155

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎website/tests/playground.test.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ test('every example stops at the stage it is meant to, under the default policy
102102
};
103103
assert.deepEqual(Object.keys(EXAMPLES).sort(), Object.keys(expected).sort());
104104
// The page starts on the repository's policy under a UTC session; its switch turns to strict.
105-
const policy = readFileSync(new URL('../public/playground/sqlquack.toml', import.meta.url), 'utf8');
105+
// The repository's policy file, which the build copies to public/playground/ for the page.
106+
const policy = readFileSync(new URL('../../sqlquack.toml', import.meta.url), 'utf8');
106107
const modes = { repository: JSON.stringify({ policy, utc_session: true }), strict: undefined };
107108
for (const [mode, settings] of Object.entries(modes)) {
108109
for (const [name, sql] of Object.entries(EXAMPLES)) {

0 commit comments

Comments
 (0)