chore: release 0.15.0-beta.10

This commit is contained in:
2026-05-27 01:54:52 -07:00
parent 1dcfed86ab
commit 29cb8c7fb4
7 changed files with 48 additions and 38 deletions
+4 -1
View File
@@ -92,7 +92,10 @@ test('knownWords.highlightEnabled does not implicitly enable nPlusOne', () => {
applyAnkiConnectResolution(context);
assert.equal(context.resolved.ankiConnect.knownWords.highlightEnabled, true);
assert.equal(context.resolved.ankiConnect.nPlusOne.enabled, DEFAULT_CONFIG.ankiConnect.nPlusOne.enabled);
assert.equal(
context.resolved.ankiConnect.nPlusOne.enabled,
DEFAULT_CONFIG.ankiConnect.nPlusOne.enabled,
);
});
test('explicit nPlusOne.enabled is respected regardless of highlightEnabled', () => {
+3 -20
View File
@@ -14,12 +14,7 @@ test('resolveDefaultLogFilePath uses APPDATA on windows', () => {
assert.equal(
path.normalize(resolved),
path.normalize(
path.join(
'C:\\Users\\tester\\AppData\\Roaming',
'SubMiner',
'logs',
`app-${today}.log`,
),
path.join('C:\\Users\\tester\\AppData\\Roaming', 'SubMiner', 'logs', `app-${today}.log`),
),
);
});
@@ -33,13 +28,7 @@ test('resolveDefaultLogFilePath uses .config on linux', () => {
assert.equal(
resolved,
path.join(
'/home/tester',
'.config',
'SubMiner',
'logs',
`app-${today}.log`,
),
path.join('/home/tester', '.config', 'SubMiner', 'logs', `app-${today}.log`),
);
});
@@ -55,13 +44,7 @@ test('setLogRotation accepts numeric retention days', () => {
assert.equal(
resolved,
path.join(
'/home/tester',
'.config',
'SubMiner',
'logs',
`app-${today}.log`,
),
path.join('/home/tester', '.config', 'SubMiner', 'logs', `app-${today}.log`),
);
assert.equal(process.env.SUBMINER_LOG_ROTATION, '14');
} finally {
@@ -204,13 +204,7 @@ test('detectInstalledMpvPlugin prefers Windows portable plugin and parses versio
test('detectInstalledMpvPlugin detects Linux legacy single-file plugin without version', () => {
withTempDir((root) => {
const homeDir = path.posix.join(root, 'home');
const legacyPath = path.posix.join(
homeDir,
'.config',
'mpv',
'scripts',
'subminer-loader.lua',
);
const legacyPath = path.posix.join(homeDir, '.config', 'mpv', 'scripts', 'subminer-loader.lua');
fs.mkdirSync(path.posix.dirname(legacyPath), { recursive: true });
fs.writeFileSync(legacyPath, '-- legacy');
+1 -3
View File
@@ -213,9 +213,7 @@ export async function launchWindowsMpv(
const launchEnv =
hasLogLevel || hasLogRotation
? {
...(hasLogLevel
? { SUBMINER_LOG_LEVEL: pluginRuntimeConfig.logLevel }
: {}),
...(hasLogLevel ? { SUBMINER_LOG_LEVEL: pluginRuntimeConfig.logLevel } : {}),
...(hasLogRotation
? { SUBMINER_LOG_ROTATION: String(pluginRuntimeConfig.logRotation) }
: {}),