![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
karma-vite3
Advanced tools
A karma plugin. Transform es module by using vite.
npm install -D karma karma-vite
// karma.conf.js
module.exports = (config) => {
config.set({
plugins: ['karma-vite', 'karma-jasmine'],
frameworks: ['vite', 'jasmine'],
files: [
{
pattern: 'test/**/*.spec.ts',
type: 'module',
watched: false,
served: false,
},
],
});
};
Edit on stackblitz
more examples see in github
The plugin works out of the box. But you may need to customize some configuration.
// karma.conf.js
module.exports = (config) => {
config.set({
vite: {
/**
* @description auto config vite middleware
* @default true
*/
autoInit: true;
/**
* vite server configuration
* @see https://vitejs.dev/config/
*/
config: {
},
/**
* @description The config will only take effect after using karma coverage reporter like karma-coverage.
* see the typescript declaration below for more detail.
*/
coverage: {
},
},
});
};
export interface KarmaViteConfig {
/**
* @description auto config vite middleware
* @default true
*/
autoInit?: boolean;
/**
* vite server configuration
* @see https://vitejs.dev/config/
*/
config: UserConfigExport;
/**
* @description The plugin can reporte coverage,
* but it will only take effect after using karma coverage reporter like karma-coverage
*
* power by vite-plugin-istanbul.
* @see https://github.com/ifaxity/vite-plugin-istanbul
*/
coverage?: {
/**
* By default, it's true if the reporter of karma config contains 'coverage', otherwise false.
*/
enable?: boolean;
include?: string | string[];
exclude?: string | string[];
extension?: string | string[];
cwd?: string;
};
}
FAQs
A karma plugin. Transform es module by using vite.
We found that karma-vite3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.