MCPcopy Create free account
hub / github.com/css-modules/css-modules-require-hook / describeTest

Function describeTest

test/tokens/index.js:10–21  ·  view source on GitHub ↗

* @param {string} testCase

(testCase)

Source from the content-addressed store, hash-verified

8 * @param {string} testCase
9 */
10function describeTest(testCase) {
11 const source = readfile(testCase, 'source.css');
12 if (source === null) {
13 return;
14 }
15
16 // @todo add a small shortcut to choose certain tests
17 test(basename(testCase), () => {
18 const expected = JSON.parse(readfile(testCase, 'expected.json'));
19 assert.deepEqual(require(resolve(testCase, 'source.css')), expected);
20 });
21}
22
23/**
24 * @param {string} dir

Callers

nothing calls this directly

Calls 1

readfileFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…