Skip to content

Commit 8c1570a

Browse files
committed
test: cleanup jest leftovers
1 parent b61a8b6 commit 8c1570a

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
test:
17-
name: Jest
17+
name: Unit Tests
1818
runs-on: ubuntu-latest
1919

2020
steps:
@@ -30,7 +30,7 @@ jobs:
3030
- name: NPM Install
3131
run: npm ci
3232

33-
- name: Run Jest Tests
33+
- name: Run Unit Tests
3434
run: npm run test --if-present
3535

3636
build:

specs/node.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
/**
2-
* @jest-environment node
3-
*/
1+
// @vitest-environment node
42
import { it } from 'vitest';
53
import assert, { assertPasreUserAgent } from './assert';
64

specs/standalone.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import BrowserDetector from '../lib/browser-dtector';
44
import assert from './assert';
55
import pkgJson from '../package.json';
66

7-
it('should detect default useragent running in `jest`', () => {
7+
it('should detect default useragent running in `vitest`', () => {
88
const browserDetect = new BrowserDetector();
99
const browserInfo = browserDetect.parseUserAgent();
1010

@@ -13,7 +13,7 @@ it('should detect default useragent running in `jest`', () => {
1313
expect(browserInfo.name).not.toBe('Unknown');
1414
});
1515

16-
it('should detect default useragent running in `jest` while invoked via `parseUserAgent`', () => {
16+
it('should detect default useragent running in `vitest` while invoked via `parseUserAgent`', () => {
1717
const ua = 'Mozilla/5.0 (darwin) AppleWebKit/537.36 (KHTML, like Gecko) jsdom/11.12.0';
1818
const browserDetect = new BrowserDetector();
1919
const browserInfo = browserDetect.parseUserAgent(ua);

0 commit comments

Comments
 (0)