import {useRuntimeConfig} from "#app";
describe('Login', async () => {
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})
const config = useRuntimeConfig() // Error: Failed to load url #app (resolved id: #app) in [...]/test/api/login.spec.ts. Does the file exist?
import {useRuntimeConfig} from "#app";
describe('Login', async () => {
await setup({
nuxtConfig: {
runtimeConfig: {
public: {
apiBasePath: 'http://localhost:3000/api/v1'
}
}
}
})
const config = useRuntimeConfig() // Error: Failed to load url #app (resolved id: #app) in [...]/test/api/login.spec.ts. Does the file exist?