chore: Update ha-nunjucks to 1.6.2 (#2549)

- Replaces:
https://github.com/dermotduffy/advanced-camera-card/pull/2515
This commit is contained in:
Dermot Duffy authored and dermotduffy committed 2026-06-30 17:45:13 -07:00
1 parent 015fb1876d
commit c3d3dd3934
15 files changed
+113 -14

No files matched your search

+12 -2
View File
@@ -1,9 +1,19 @@
import { describe, expect, it, vi } from 'vitest';
import { beforeAll, describe, expect, it, vi } from 'vitest';
import { TemplateManager } from '../../../src/card-controller/templates/index';
import { createConfig, createHASS, createStateEntity } from '../../test-utils';
import {
createConfig,
createHASS,
createStateEntity,
stubConnectedHomeAssistant,
} from '../../test-utils';
// ha-nunjucks reads `window`/`document` at import and renders via a
// `window.haNunjucks` global, so the renderer needs a DOM environment.
// @vitest-environment jsdom
describe('TemplateManager', () => {
beforeAll(() => stubConnectedHomeAssistant());
describe('loadRenderer', () => {
it('should render a template raw before the engine is loaded', () => {
const manager = new TemplateManager();