test: fix

This commit is contained in:
alexander.akait 2024-05-07 19:38:06 +03:00
parent 637bdc1e72
commit c27648461e
1 changed files with 2 additions and 6 deletions

View File

@ -110,18 +110,14 @@ const describeCases = config => {
(options.experiments && options.experiments.outputModule
? ".mjs"
: ".js");
if (
(config.cache && config.cache !== true) ||
(options.cache && options.cache !== true)
) {
if (config.cache) {
options.cache = {
cacheDirectory,
name:
options.cache && options.cache !== true
? options.cache.name
: `config-${idx}`,
...config.cache,
...options.cache
...config.cache
};
}
if (config.cache) {