Skip to content

Commit c879bfe

Browse files
committed
chore: change to node 22
1 parent 4aa14b4 commit c879bfe

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
- name: Check out code
1212
uses: actions/checkout@v4
1313

14-
- name: Set up Node 20
14+
- name: Set up Node 22
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: '20'
17+
node-version: '22'
1818
cache: 'npm'
1919

2020
- name: NPM Install
@@ -30,10 +30,10 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232

33-
- name: Set up Node 20
33+
- name: Set up Node 22
3434
uses: actions/setup-node@v4
3535
with:
36-
node-version: '20'
36+
node-version: '22'
3737
cache: 'npm'
3838

3939
- name: NPM Install

src/example-dash/example-dash.component.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ describe('example dash component', () => {
2727
TestBed.inject(DefaultConfigurationService).configure();
2828
});
2929

30+
afterEach(() => {
31+
vi.useRealTimers();
32+
});
33+
3034
test('can detect clicks inside the dashboard', () => {
3135
const fixture = TestBed.createComponent(ExampleDashComponent);
3236
fixture.componentInstance.onClick = vi.fn();
@@ -90,8 +94,6 @@ describe('example dash component', () => {
9094
fixture.detectChanges();
9195

9296
expect(fixture.nativeElement.textContent).not.toContain('new text!');
93-
9497
expect(fixture.nativeElement.textContent).toContain('wipe it all away');
95-
vi.useRealTimers();
9698
});
9799
});

0 commit comments

Comments
 (0)