Releases: johannschopplich/nitro-test-utils
Releases · johannschopplich/nitro-test-utils
v0.9.0
🚨 Breaking Changes
- Rename
$fetch
export to$fetchRaw
- by @johannschopplich in #10 (d5472)
🚀 Features
injectServerUrl
andcreateFetch
utils - by @johannschopplich (5052c)
View changes on GitHub
v0.8.2
v0.8.1
🏎 Performance
- Simplify global Nitro setup - by @johannschopplich (4ca33)
- Simplify starting server setup - by @johannschopplich (535fd)
View changes on GitHub
v0.8.0
Migration
The Nitro test utilities have been rewritten to provide flexible Nitro setups per test suite. The global Nitro setup was previously implicit and is now explicit. To upgrade and keep the same testing behavior, add the global
option to the Nitro configuration in the vitest.config.ts
file:
import { defineConfig } from 'nitro-test-utils/config'
export default defineConfig({
nitro: {
+ global: true
}
})
Changes
🚨 Breaking Changes
- New
setup
test method to allow multiple fixtures - by @Barbapapazes and @johannschopplich in #7 (323eb)
🚀 Features
rerunOnSourceChanges
option - by @johannschopplich (793e2)- Optional global Nitro dev build - by @johannschopplich (d33d7)
- Share global and test-specific options - by @johannschopplich (81079)
🐞 Bug Fixes
- Optional
global
Vitest config values - by @johannschopplich (29d4f)
View changes on GitHub
v0.7.0
🚀 Features
- Allow specifying vite/vitest configuration options - by @marcogrcr in #4 (2d773)
View changes on GitHub
v0.6.0
🚨 Breaking Changes
- Default to
pool: forks
(Vitest v2 default) - by @johannschopplich (d75fe)
🚀 Features
- Upgrade to Vitest v2 - by @johannschopplich (d13bc)
View changes on GitHub
v0.5.0
🚀 Features
- Conditional code inside tests with
import.meta.test
- by @johannschopplich (cc80f)
View changes on GitHub
v0.4.4
🚀 Features
- Populate env from local
.env.test
file - by @johannschopplich in #2 (a9514)
View changes on GitHub
v0.4.3
v0.4.2
No significant changes