1
0
Fork 0
mirror of https://github.com/rharkor/caching-for-turbo.git synced 2025-06-08 01:37:01 +09:00

refactor: test

This commit is contained in:
rharkor 2025-04-10 10:54:53 +02:00
parent e077339fd2
commit f7c5f3b2d7
3 changed files with 16 additions and 7 deletions

11
dist/setup/index.js generated vendored
View file

@ -127121,9 +127121,14 @@ async function server() {
logger: true
});
//! DEBUG try to insert cache
console.log('DEBUG try to insert cache');
await promises_1.default.writeFile('test.txt', 'test');
await cache_2.default.saveCache(['test.txt'], 'test');
try {
console.log('DEBUG try to insert cache');
await promises_1.default.writeFile('test.txt', 'test');
await cache_2.default.saveCache(['test.txt'], 'test');
}
catch (error) {
console.error(error);
}
//? Server status check
fastify.get('/', async () => {
return { ok: true };

2
dist/setup/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -11,9 +11,13 @@ export async function server(): Promise<void> {
})
//! DEBUG try to insert cache
console.log('DEBUG try to insert cache')
await fs.writeFile('test.txt', 'test')
await cache.saveCache(['test.txt'], 'test')
try {
console.log('DEBUG try to insert cache')
await fs.writeFile('test.txt', 'test')
await cache.saveCache(['test.txt'], 'test')
} catch (error) {
console.error(error)
}
//? Server status check
fastify.get('/', async () => {