Files
chrnx-dev-wp/tests/smoke/project-config.test.mjs
T

17 lines
761 B
JavaScript

import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
import test from 'node:test';
test('tooling is pinned and wp-env maps this repo as chrnx', async () => {
const pkg = JSON.parse(await readFile('package.json', 'utf8'));
const env = JSON.parse(await readFile('.wp-env.json', 'utf8'));
assert.equal(pkg.devDependencies['@wordpress/env'], '11.12.0');
assert.equal(pkg.devDependencies['@wordpress/scripts'], '34.0.0');
assert.equal(pkg.devDependencies['@playwright/test'], '1.62.1');
assert.equal(pkg.devDependencies.lighthouse, '13.4.1');
assert.equal(env.core, 'https://wordpress.org/wordpress-6.9.6.zip');
assert.equal(env.phpVersion, '8.3');
assert.equal(env.mappings['wp-content/themes/chrnx'], '.');
});