exif-ai
Version:
A powerful Node.js CLI and library that uses AI providers (OpenAI, Google Gemini, Anthropic Claude, Mistral, Ollama, Amazon Bedrock, Azure OpenAI, DeepInfra, Fireworks, XAI, OpenRouter, and more) to intelligently write image descriptions and tags to EXIF
22 lines (20 loc) • 473 B
JavaScript
import { defineConfig } from "vitest/config";
const RemoveShebangPlugin = () => {
return {
name: "vitest:remove-shebang-plugin",
enforce: "pre",
transform(code) {
return code.replace(/^\#\!.*/, "");
},
};
};
export default defineConfig({
test: {
coverage: {
enabled: true,
provider: "istanbul", // or 'v8'
},
environment: "node", // Since we're running Node.js-specific code
},
plugins: [RemoveShebangPlugin()],
});