From eeaddb27560d723ca7d61359744ceb2709fccd2d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 15 Oct 2024 21:01:31 +0100 Subject: Renamed from pyblackbird_cc to alphabetlearning - everywhere --- alphabetlearning/static/scss/tests/sass-true/register.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 alphabetlearning/static/scss/tests/sass-true/register.js (limited to 'alphabetlearning/static/scss/tests/sass-true/register.js') diff --git a/alphabetlearning/static/scss/tests/sass-true/register.js b/alphabetlearning/static/scss/tests/sass-true/register.js new file mode 100644 index 0000000..d93e414 --- /dev/null +++ b/alphabetlearning/static/scss/tests/sass-true/register.js @@ -0,0 +1,14 @@ +'use strict' + +const path = require('node:path') + +const runnerPath = path.join(__dirname, 'runner').replace(/\\/g, '/') + +require.extensions['.scss'] = (module, filename) => { + const normalizedFilename = filename.replace(/\\/g, '/') + + return module._compile(` + const runner = require('${runnerPath}') + runner('${normalizedFilename}', { describe, it }) + `, filename) +} -- cgit v1.2.3