├── recorded ├── .vscode │ └── settings.json └── app │ ├── package.json │ ├── api.js │ ├── api.test.js │ └── package-lock.json ├── preclass ├── app │ ├── package.json │ ├── api.js │ ├── api.test.js │ └── package-lock.json └── annotations.txt └── README.md /recorded/.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "window.zoomLevel": 3 3 | } -------------------------------------------------------------------------------- /recorded/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "app", 3 | "version": "0.0.1", 4 | "description": "", 5 | "main": "index.js", 6 | "type": "module", 7 | "scripts": { 8 | "dev": "node --watch api.js", 9 | "test:dev": "node --test --watch api.test.js", 10 | "test": "node --test api.test.js" 11 | }, 12 | "keywords": [], 13 | "author": "", 14 | "license": "ISC", 15 | "dependencies": { 16 | "jsonwebtoken": "^9.0.0" 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /preclass/app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "app", 3 | "version": "0.0.1", 4 | "description": "", 5 | "main": "index.js", 6 | "type": "module", 7 | "scripts": { 8 | "dev": "node --watch api.js", 9 | "test:dev": "node --test --watch api.test.js", 10 | "test": "node --test api.test.js" 11 | }, 12 | "engines": { 13 | "node": "19" 14 | }, 15 | "keywords": [], 16 | "author": "", 17 | "license": "ISC", 18 | "dependencies": { 19 | "jsonwebtoken": "^9.0.0" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # how-to-e2e-testing-nodejs-with-no-frameworks 2 | A video tutorial about E2E Testing in Node.js using only the native Node.js test runner 3 | 4 | ## About 5 | Welcome, this repo is part of my [**youtube video**](https://youtu.be/xSDJnj-pgxU) about **How to create e2e tests in Node.js with no frameworks (pt-br)** 6 | First of all, leave your star 🌟 on this repo. 7 | 8 | Access our [**exclusive telegram channel**](https://t.me/ErickWendelContentHub) so I'll let you know about all the content I've been producing 9 | 10 | ## Complete source code 11 | - Access it in [app](./recorded/) 12 | 13 | ![Como criar testes E2E em Node js sem frameworks-v2](https://user-images.githubusercontent.com/8060102/232351623-5ce4f3ea-cae4-4066-a3ab-00710fb249bb.jpg) 14 | 15 | 16 | ## Have fun! 17 | 18 | -------------------------------------------------------------------------------- /preclass/annotations.txt: -------------------------------------------------------------------------------- 1 | mkdir app 2 | npm init -y 3 | npm i jsonwebtoken@9.0.0 4 | package.json 5 | type 6 | scripts 7 | all 8 | 9 | api.js 10 | async handler with hello world 11 | createServer 12 | export {app } 13 | 14 | api.test.js 15 | describe 16 | before 17 | after 18 | first it 19 | all 20 | api.js 21 | VALID 22 | if request 23 | loginRoute 24 | until user invalid 25 | response.end('ok) 26 | -> test should pass 27 | api.js 28 | jsonwebtoken 29 | all 30 | api.test.js 31 | second it 32 | all 33 | -> test should pass 34 | third it 35 | all 36 | api.js 37 | validateHeaders 38 | all 39 | response.end() 40 | 41 | api.test.js 42 | forth it 43 | all 44 | -> test should pass 45 | api.test.js 46 | fith it 47 | all 48 | > test should pass -------------------------------------------------------------------------------- /recorded/app/api.js: -------------------------------------------------------------------------------- 1 | import { once } from 'node:events' 2 | import { createServer } from 'node:http' 3 | import JWT from 'jsonwebtoken' 4 | 5 | const DEFAULT_USER = { 6 | user: 'erickwendel', 7 | password: '123' 8 | } 9 | const JWT_KEY = 'abc123' 10 | async function loginRoute(request, response) { 11 | const { user, password } = JSON.parse(await once(request, 'data')) 12 | if (user !== DEFAULT_USER.user || password !== DEFAULT_USER.password) { 13 | response.writeHead(401) 14 | response.end(JSON.stringify({ error: 'user invalid!' })) 15 | return 16 | } 17 | const token = JWT.sign({ user, message: 'hey duuude!' }, JWT_KEY) 18 | 19 | response.end(JSON.stringify({ token })) 20 | } 21 | function isHeadersValid(headers) { 22 | try { 23 | const auth = headers.authorization.replace(/bearer\s/ig, '') 24 | JWT.verify(auth, JWT_KEY) 25 | 26 | return true 27 | } catch (error) { 28 | return false 29 | } 30 | } 31 | 32 | async function handler(request, response) { 33 | if (request.url === '/login' && request.method === 'POST') { 34 | return loginRoute(request, response) 35 | } 36 | if (!isHeadersValid(request.headers)) { 37 | response.writeHead(400) 38 | return response.end(JSON.stringify({ error: 'invalid token!' })) 39 | } 40 | response.end(JSON.stringify({ result: 'Hey welcome!' })) 41 | } 42 | 43 | const app = createServer(handler) 44 | .listen(3000, () => console.log('listening at 3000')) 45 | 46 | export { app } -------------------------------------------------------------------------------- /preclass/app/api.js: -------------------------------------------------------------------------------- 1 | import jsonwebtoken from 'jsonwebtoken' 2 | import { once } from 'node:events' 3 | import { createServer } from 'node:http' 4 | 5 | const VALID = { 6 | user: 'erickwendel', 7 | password: '123' 8 | } 9 | const TOKEN_KEY = "abc123" 10 | 11 | async function loginRoute(request, response) { 12 | const { user, password } = JSON.parse(await once(request, "data")) 13 | if (user !== VALID.user || password !== VALID.password) { 14 | response.writeHead(400) 15 | response.end(JSON.stringify({ error: 'user invalid!' })) 16 | return 17 | } 18 | 19 | const token = jsonwebtoken.sign({ user, message: 'heyduude' }, TOKEN_KEY) 20 | 21 | response.end(JSON.stringify({ token })) 22 | } 23 | 24 | function validateHeaders(headers) { 25 | try { 26 | const auth = headers.authorization.replace(/bearer\s/ig, '') 27 | jsonwebtoken.verify(auth, TOKEN_KEY) 28 | return true 29 | } catch (error) { 30 | return false 31 | } 32 | } 33 | 34 | async function handler(request, response) { 35 | if (request.url === '/login' && request.method === "POST") { 36 | return loginRoute(request, response) 37 | } 38 | 39 | if (!validateHeaders(request.headers)) { 40 | response.writeHead(400) 41 | return response.end(JSON.stringify({ result: "invalid token!" })) 42 | } 43 | 44 | response.end(JSON.stringify({ result: 'Hey welcome!' })) 45 | } 46 | 47 | const app = createServer(handler) 48 | .listen(3000, () => console.log('listening to 3000')) 49 | 50 | export { app } -------------------------------------------------------------------------------- /preclass/app/api.test.js: -------------------------------------------------------------------------------- 1 | import { describe, before, after, it } from 'node:test' 2 | import { deepStrictEqual, ok } from 'node:assert' 3 | let _globalToken = '' 4 | let BASE_URL = 'http://localhost:3000' 5 | 6 | describe('API Workflow', () => { 7 | let _server = {} 8 | before(async () => { 9 | _server = (await import('./api.js')).app 10 | await new Promise(resolve => _server.once('listening', resolve)) 11 | }) 12 | 13 | after(done => _server.close(done)) 14 | 15 | it('should receive not authorized given wrong user and password', async () => { 16 | const data = { 17 | user: 'erickwendel', 18 | password: '' 19 | } 20 | const request = await fetch(`${BASE_URL}/login`, { 21 | method: 'POST', 22 | body: JSON.stringify(data), 23 | }) 24 | 25 | deepStrictEqual(request.status, 400) 26 | const response = await request.json() 27 | deepStrictEqual(response, { error: 'user invalid!' }) 28 | }) 29 | 30 | it('should login successfuly given user and password', async () => { 31 | const data = { 32 | user: 'erickwendel', 33 | password: '123' 34 | } 35 | const request = await fetch(`${BASE_URL}/login`, { 36 | method: 'POST', 37 | body: JSON.stringify(data), 38 | }) 39 | 40 | deepStrictEqual(request.status, 200) 41 | const response = await request.json() 42 | ok(response.token, "token should be present") 43 | _globalToken = response.token 44 | }) 45 | 46 | it('should not be allowed to access private data without a token', async () => { 47 | const headers = { 48 | authorization: '' 49 | } 50 | const request = await fetch(`${BASE_URL}`, { 51 | headers 52 | }) 53 | deepStrictEqual(request.status, 400) 54 | const response = await request.json() 55 | deepStrictEqual(response, { result: 'invalid token!' }) 56 | }) 57 | 58 | it('should be allowed to access private data given a valid token', async () => { 59 | const headers = { 60 | authorization: _globalToken 61 | } 62 | const request = await fetch(`${BASE_URL}`, { 63 | headers 64 | }) 65 | deepStrictEqual(request.status, 200) 66 | const response = await request.json() 67 | deepStrictEqual(response, { result: 'Hey welcome!' }) 68 | }) 69 | }) -------------------------------------------------------------------------------- /recorded/app/api.test.js: -------------------------------------------------------------------------------- 1 | import { describe, before, after, it } from 'node:test' 2 | import { deepStrictEqual, ok, strictEqual } from 'node:assert' 3 | const BASE_URL = 'http://localhost:3000' 4 | describe('API Workflow', () => { 5 | let _server = {} 6 | let _globalToken = '' 7 | before(async () => { 8 | _server = (await import('./api.js')).app 9 | await new Promise(resolve => _server.once('listening', resolve)) 10 | }) 11 | after(done => _server.close(done)) 12 | 13 | it('should receive not authorized given wrong user and password', async () => { 14 | const data = { 15 | user: 'erickwendel', 16 | password: '' 17 | } 18 | const request = await fetch(`${BASE_URL}/login`, { 19 | method: 'POST', 20 | body: JSON.stringify(data) 21 | }) 22 | strictEqual(request.status, 401) 23 | const response = await request.json() 24 | deepStrictEqual(response, { error: 'user invalid!' }) 25 | }) 26 | it('should login successfuly given user and password', async () => { 27 | const data = { 28 | user: 'erickwendel', 29 | password: '123' 30 | } 31 | const request = await fetch(`${BASE_URL}/login`, { 32 | method: 'POST', 33 | body: JSON.stringify(data) 34 | }) 35 | strictEqual(request.status, 200) 36 | const response = await request.json() 37 | ok(response.token, 'token should be present') 38 | _globalToken = response.token 39 | }) 40 | 41 | it('should not be allowed to access private data without a token', async () => { 42 | 43 | const request = await fetch(`${BASE_URL}/`, { 44 | method: 'GET', 45 | headers: { 46 | authorization: '' 47 | } 48 | }) 49 | 50 | strictEqual(request.status, 400) 51 | const response = await request.json() 52 | deepStrictEqual(response, { error: 'invalid token!' }) 53 | }) 54 | 55 | it('should be allowed to access private data with a valid token', async () => { 56 | 57 | const request = await fetch(`${BASE_URL}/`, { 58 | method: 'GET', 59 | headers: { 60 | authorization: _globalToken 61 | } 62 | }) 63 | 64 | strictEqual(request.status, 200) 65 | const response = await request.json() 66 | deepStrictEqual(response, { result: 'Hey welcome!' }) 67 | }) 68 | }) -------------------------------------------------------------------------------- /recorded/app/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "app", 3 | "version": "0.0.1", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "app", 9 | "version": "0.0.1", 10 | "license": "ISC", 11 | "dependencies": { 12 | "jsonwebtoken": "^9.0.0" 13 | } 14 | }, 15 | "node_modules/buffer-equal-constant-time": { 16 | "version": "1.0.1", 17 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", 18 | "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" 19 | }, 20 | "node_modules/ecdsa-sig-formatter": { 21 | "version": "1.0.11", 22 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", 23 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", 24 | "dependencies": { 25 | "safe-buffer": "^5.0.1" 26 | } 27 | }, 28 | "node_modules/jsonwebtoken": { 29 | "version": "9.0.0", 30 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", 31 | "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", 32 | "dependencies": { 33 | "jws": "^3.2.2", 34 | "lodash": "^4.17.21", 35 | "ms": "^2.1.1", 36 | "semver": "^7.3.8" 37 | }, 38 | "engines": { 39 | "node": ">=12", 40 | "npm": ">=6" 41 | } 42 | }, 43 | "node_modules/jwa": { 44 | "version": "1.4.1", 45 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", 46 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", 47 | "dependencies": { 48 | "buffer-equal-constant-time": "1.0.1", 49 | "ecdsa-sig-formatter": "1.0.11", 50 | "safe-buffer": "^5.0.1" 51 | } 52 | }, 53 | "node_modules/jws": { 54 | "version": "3.2.2", 55 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", 56 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", 57 | "dependencies": { 58 | "jwa": "^1.4.1", 59 | "safe-buffer": "^5.0.1" 60 | } 61 | }, 62 | "node_modules/lodash": { 63 | "version": "4.17.21", 64 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 65 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 66 | }, 67 | "node_modules/lru-cache": { 68 | "version": "6.0.0", 69 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 70 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 71 | "dependencies": { 72 | "yallist": "^4.0.0" 73 | }, 74 | "engines": { 75 | "node": ">=10" 76 | } 77 | }, 78 | "node_modules/ms": { 79 | "version": "2.1.3", 80 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 81 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 82 | }, 83 | "node_modules/safe-buffer": { 84 | "version": "5.2.1", 85 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 86 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 87 | "funding": [ 88 | { 89 | "type": "github", 90 | "url": "https://github.com/sponsors/feross" 91 | }, 92 | { 93 | "type": "patreon", 94 | "url": "https://www.patreon.com/feross" 95 | }, 96 | { 97 | "type": "consulting", 98 | "url": "https://feross.org/support" 99 | } 100 | ] 101 | }, 102 | "node_modules/semver": { 103 | "version": "7.3.8", 104 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", 105 | "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", 106 | "dependencies": { 107 | "lru-cache": "^6.0.0" 108 | }, 109 | "bin": { 110 | "semver": "bin/semver.js" 111 | }, 112 | "engines": { 113 | "node": ">=10" 114 | } 115 | }, 116 | "node_modules/yallist": { 117 | "version": "4.0.0", 118 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 119 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" 120 | } 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /preclass/app/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "app", 3 | "version": "0.0.1", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "app", 9 | "version": "0.0.1", 10 | "license": "ISC", 11 | "dependencies": { 12 | "jsonwebtoken": "^9.0.0" 13 | }, 14 | "engines": { 15 | "node": "19" 16 | } 17 | }, 18 | "node_modules/buffer-equal-constant-time": { 19 | "version": "1.0.1", 20 | "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", 21 | "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==" 22 | }, 23 | "node_modules/ecdsa-sig-formatter": { 24 | "version": "1.0.11", 25 | "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", 26 | "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", 27 | "dependencies": { 28 | "safe-buffer": "^5.0.1" 29 | } 30 | }, 31 | "node_modules/jsonwebtoken": { 32 | "version": "9.0.0", 33 | "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.0.tgz", 34 | "integrity": "sha512-tuGfYXxkQGDPnLJ7SibiQgVgeDgfbPq2k2ICcbgqW8WxWLBAxKQM/ZCu/IT8SOSwmaYl4dpTFCW5xZv7YbbWUw==", 35 | "dependencies": { 36 | "jws": "^3.2.2", 37 | "lodash": "^4.17.21", 38 | "ms": "^2.1.1", 39 | "semver": "^7.3.8" 40 | }, 41 | "engines": { 42 | "node": ">=12", 43 | "npm": ">=6" 44 | } 45 | }, 46 | "node_modules/jwa": { 47 | "version": "1.4.1", 48 | "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", 49 | "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", 50 | "dependencies": { 51 | "buffer-equal-constant-time": "1.0.1", 52 | "ecdsa-sig-formatter": "1.0.11", 53 | "safe-buffer": "^5.0.1" 54 | } 55 | }, 56 | "node_modules/jws": { 57 | "version": "3.2.2", 58 | "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", 59 | "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", 60 | "dependencies": { 61 | "jwa": "^1.4.1", 62 | "safe-buffer": "^5.0.1" 63 | } 64 | }, 65 | "node_modules/lodash": { 66 | "version": "4.17.21", 67 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 68 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 69 | }, 70 | "node_modules/lru-cache": { 71 | "version": "6.0.0", 72 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 73 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 74 | "dependencies": { 75 | "yallist": "^4.0.0" 76 | }, 77 | "engines": { 78 | "node": ">=10" 79 | } 80 | }, 81 | "node_modules/ms": { 82 | "version": "2.1.3", 83 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 84 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 85 | }, 86 | "node_modules/safe-buffer": { 87 | "version": "5.2.1", 88 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 89 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 90 | "funding": [ 91 | { 92 | "type": "github", 93 | "url": "https://github.com/sponsors/feross" 94 | }, 95 | { 96 | "type": "patreon", 97 | "url": "https://www.patreon.com/feross" 98 | }, 99 | { 100 | "type": "consulting", 101 | "url": "https://feross.org/support" 102 | } 103 | ] 104 | }, 105 | "node_modules/semver": { 106 | "version": "7.3.8", 107 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", 108 | "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", 109 | "dependencies": { 110 | "lru-cache": "^6.0.0" 111 | }, 112 | "bin": { 113 | "semver": "bin/semver.js" 114 | }, 115 | "engines": { 116 | "node": ">=10" 117 | } 118 | }, 119 | "node_modules/yallist": { 120 | "version": "4.0.0", 121 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 122 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" 123 | } 124 | } 125 | } 126 | --------------------------------------------------------------------------------