github.com/evanw/esbuild@v0.21.4/require/yarnpnp/in.mjs (about) 1 console.log('Running Yarn PnP tests...') 2 3 import * as rd from 'react-dom' 4 if (rd.version !== '18.2.0') throw '❌ react-dom' 5 6 import * as s3 from 'strtok3' 7 import * as s3_core from 'strtok3/core' 8 if (!s3.fromFile) throw '❌ strtok3' 9 if (!s3_core.fromBuffer) throw '❌ strtok3/core' 10 11 import * as d3 from 'd3-time' 12 if (!d3.utcDay) throw '❌ d3-time' 13 14 import * as mm from 'mime' 15 if (mm.default.getType('txt') !== 'text/plain') throw '❌ mime' 16 17 import * as ajv from 'aws-jwt-verify' 18 if (!ajv.CognitoJwtVerifier) throw '❌ aws-jwt-verify' 19 20 import * as foo from 'foo' 21 if (foo.default !== 'foo') throw '❌ foo' 22 23 import * as bar from './bar/index.js' 24 if (bar.bar !== 'bar') throw '❌ bar' 25 26 console.log('✅ Yarn PnP tests passed')