UNPKG

st

Version:

A module for serving static files. Does etags, caching, etc.

21 lines (16 loc) 541 B
import { test } from './support/tap-shim.js' // turn off ALL caching. global.options = { cache: false } // otherwise just the same as basic. const { mount } = await import('./basic-test.js') // additional tests to ensure that it's actually not caching. test('all caches should be empty', (t) => { t.same(mount._this.cache.fd.dump(), []) t.same(mount._this.cache.stat.dump(), []) t.same(mount._this.cache.index.dump(), []) t.same(mount._this.cache.readdir.dump(), []) t.same(mount._this.cache.content.dump(), []) t.end() })