How can I go about overriding .dev.vars in a testing context?

I require different configuration from my local use config when testing
1 Reply
peachneo
peachneoOP6d ago
Figured it out - can be configured in vitest
poolOptions: {

workers: {
miniflare: {
bindings: {
APPLICATION_ENVIRONMENT: 'test',
}
},
wrangler: { configPath: './wrangler.toml' },
},
},
poolOptions: {

workers: {
miniflare: {
bindings: {
APPLICATION_ENVIRONMENT: 'test',
}
},
wrangler: { configPath: './wrangler.toml' },
},
},

Did you find this page helpful?