|
Ultima modificación |
Ver Log
|
Rev |
Autor |
Línea Nro. |
Línea |
1441 |
ariadna |
1 |
'use strict'
|
|
|
2 |
|
|
|
3 |
const path = require('node:path')
|
|
|
4 |
|
|
|
5 |
const runnerPath = path.join(__dirname, 'runner').replace(/\\/g, '/')
|
|
|
6 |
|
|
|
7 |
require.extensions['.scss'] = (module, filename) => {
|
|
|
8 |
const normalizedFilename = filename.replace(/\\/g, '/')
|
|
|
9 |
|
|
|
10 |
return module._compile(`
|
|
|
11 |
const runner = require('${runnerPath}')
|
|
|
12 |
runner('${normalizedFilename}', { describe, it })
|
|
|
13 |
`, filename)
|
|
|
14 |
}
|