Skip to content
Myr

Add Node.js 19 to CI

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent ca71e1e · Browse files · 4 files+26 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+26 added−20 removed

  • tests:+24 added−19 removed
  • other:+2 added−1 removed

4 files+26 added−20 removed

modified:.github/workflows/test.yml+2 added-1 removed
modified:test/async.test.js+8 added-6 removed
3 unmodified lines
4import { urlAlphabet } from '../index.js'5import * as browser from '../async/index.browser.js'6import * as node from '../async/index.js'78Object.defineProperty(global, 'crypto', {8global.crypto = {9 getRandomValues(array) {10 for (let i = 0; i < array.length; i++) {11 array[i] = Math.floor(Math.random() * 256)9 value: {10 getRandomValues(array) {11 for (let i = 0; i < array.length; i++) {12 array[i] = Math.floor(Math.random() * 256)13 }14 return array15 }13 return array16 }15}17})1819function times(size, callback) {20 let array = []21 for (let i = 0; i < size; i++) {
119 unmodified lines
modified:test/index.test.js+8 added-6 removed
3 unmodified lines
4import * as browser from '../index.browser.js'5import * as node from '../index.js'67test.before(() => {8 Object.defineProperty(global, 'crypto', {8 global.crypto = {9 getRandomValues(array) {10 for (let i = 0; i < array.length; i++) {11 array[i] = Math.floor(Math.random() * 256)9 value: {10 getRandomValues(array) {11 for (let i = 0; i < array.length; i++) {12 array[i] = Math.floor(Math.random() * 256)13 }14 return array15 }13 return array16 }15 }17 })18})1920test.after(() => {21 delete global.crypto
176 unmodified lines
modified:test/react-native-polyfill.test.js+8 added-7 removed