Asper Header  1.0.14
The header injector extension
Loading...
Searching...
No Matches
lazyFileLoad.test.ts File Reference

Comprehensive test suite for LazyFileLoader with real file operations. More...

Go to the source code of this file.

Variables

import *as assert from assert
 
import *as fs from fs promises
 
import *as path from path
 
 import { LazyFileLoader } from '../modules/lazyFileLoad'
 
value __pad0__
 
enabled __pad1__
 
items __pad2__
 

Detailed Description

Comprehensive test suite for LazyFileLoader with real file operations.

Author
Henry Letellier
Version
1.0.10
Since
1.0.4
Date
2025

This module provides extensive testing coverage for the LazyFileLoader class, validating caching behavior, file format support, error handling, and path resolution using real file operations and temporary test files.

Test Coverage:

  • File loading and caching mechanisms
  • JSON parsing and validation
  • Error handling for missing files and parse errors
  • Path resolution (relative and absolute)
  • Cache invalidation and refresh functionality
  • Memory management and type safety

Definition in file lazyFileLoad.test.ts.

Variable Documentation

◆ __pad0__

value __pad0__

Definition at line 37 of file lazyFileLoad.test.ts.

◆ __pad1__

enabled __pad1__

Definition at line 38 of file lazyFileLoad.test.ts.

◆ __pad2__

items __pad2__

Definition at line 54 of file lazyFileLoad.test.ts.

◆ assert

import* as assert from assert

Definition at line 22 of file lazyFileLoad.test.ts.

◆ import

import { LazyFileLoader } from '../modules/lazyFileLoad'

Definition at line 25 of file lazyFileLoad.test.ts.

◆ path

import* as path from path

Definition at line 24 of file lazyFileLoad.test.ts.

◆ promises

import* as fs from fs promises

Definition at line 23 of file lazyFileLoad.test.ts.