Skip to content

Commit 8650e3f

Browse files
committed
fixes
1 parent 702dee9 commit 8650e3f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/inject/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {ImageDetails} from './dynamic-theme/image';
1+
import type { ImageDetails } from './dynamic-theme/image';
22

33
const STORAGE_KEY_WAS_ENABLED_FOR_HOST = '__darkreader__wasEnabledForHost';
44
const STORAGE_KEY_IMAGE_DETAILS_LIST = '__darkreader__imageDetails_v2_list';

tests/inject/karma.conf.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import rollupPluginTypescript from '@rollup/plugin-typescript';
99
import rollupPluginIstanbul from 'rollup-plugin-istanbul';
1010
import typescript from 'typescript';
1111

12-
import {absolutePath} from '../../tasks/paths.js';
12+
import { absolutePath } from '../../tasks/paths.js';
1313

14-
import {createEchoServer} from './support/echo-server.js';
14+
import { createEchoServer } from './support/echo-server.js';
1515

1616
/**
1717
* @param {Partial<LocalConfig>} config
@@ -30,7 +30,7 @@ export function configureKarma(config, env) {
3030
files: [
3131
'tests/inject/support/customize.ts',
3232
'tests/inject/support/polyfills.ts',
33-
{pattern: 'tests/inject/**/*.tests.ts', watched: false},
33+
{ pattern: 'tests/inject/**/*.tests.ts', watched: false },
3434
],
3535
plugins: [
3636
'karma-chrome-launcher',
@@ -49,6 +49,10 @@ export function configureKarma(config, env) {
4949
typescript,
5050
tsconfig: absolutePath('tests/inject/tsconfig.json'),
5151
cacheDir: `${fs.realpathSync(os.tmpdir())}/darkreader_typescript_test_cache`,
52+
compilerOptions: {
53+
outDir: undefined,
54+
declarationDir: undefined,
55+
},
5256
}),
5357
rollupPluginReplace({
5458
preventAssignment: true,

0 commit comments

Comments
 (0)