Skip to content

Commit

Permalink
WIP test with latest jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
ctavan committed Jul 29, 2022
1 parent cb059ed commit 3bb0145
Show file tree
Hide file tree
Showing 8 changed files with 1,617 additions and 4,043 deletions.
5 changes: 0 additions & 5 deletions examples/jest-uuid-main/jsdom.test.js

This file was deleted.

3 changes: 0 additions & 3 deletions examples/jest-uuid-main/node.test.js

This file was deleted.

11 changes: 0 additions & 11 deletions examples/jest-uuid-main/package.json

This file was deleted.

2,516 changes: 0 additions & 2,516 deletions examples/jest-uuid-main/yarn.lock

This file was deleted.

8 changes: 8 additions & 0 deletions examples/jest/jsdom.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @jest-environment jsdom */

const uuid = require('uuid');

test('uuidv4()', () => {
const val = uuid.v4();
expect(uuid.version(val)).toBe(4);
});
6 changes: 6 additions & 0 deletions examples/jest/node.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const uuid = require('uuid');

test('uuidv4()', () => {
const val = uuid.v4();
expect(uuid.version(val)).toBe(4);
});
3,096 changes: 1,588 additions & 1,508 deletions examples/jest-uuid-main/package-lock.json → examples/jest/package-lock.json

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions examples/jest/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "uuid-example-jest",
"version": "0.0.0",
"private": true,
"scripts": {
"test": "jest"
},
"dependencies": {
"uuid": "file:../../.local/uuid"
},
"devDependencies": {
"jest": "^29.0.0-alpha.0",
"jest-environment-jsdom": "^29.0.0-alpha.0"
}
}

0 comments on commit 3bb0145

Please sign in to comment.