Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Oct 17, 2024
1 parent 58b6165 commit a551cdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ssr-es-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ jobs:
- name: Run es-check to check if our ie11 bundle is ES5 compatible
run: npx [email protected] es5 dist/array.full.ie11.js

- name: Run es-check to check if our bundle is ES5 compatible
run: npx [email protected] es6 dist/{array,main}.js
- name: Run es-check to check if our array bundle is ES6 compatible
run: npx [email protected] es6 dist/array.js

- name: Run es-check to check if our main bundle is ES6 compatible
run: npx [email protected] es6 dist/main.js
7 changes: 6 additions & 1 deletion testcafe/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ export const staticFilesMock = RequestMock()
.onRequestTo(/array.full.js/)
.respond((req, res) => {
// eslint-disable-next-line no-undef
const arrayjs = fs.readFileSync(path.resolve(__dirname, '../dist/array.full.js'))
const ENV_BROWSER = process.env.BROWSER
// eslint-disable-next-line no-console
console.log('setting up staticFilesMock for browser: ', ENV_BROWSER)
const fileToRead = ENV_BROWSER === 'browserstack:ie' ? '../dist/array.full.ie11.js' : '../dist/array.full.js'
// eslint-disable-next-line no-undef
const arrayjs = fs.readFileSync(path.resolve(__dirname, fileToRead))
res.setBody(arrayjs)
})
.onRequestTo(/playground/)
Expand Down

0 comments on commit a551cdd

Please sign in to comment.