diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e11aed4..195f7c1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: node: [16.x, 18.x, 20.x] - prettier: ["3.0"] + prettier: ["3.0", "3.6"] steps: - uses: actions/checkout@v2 @@ -26,7 +26,7 @@ jobs: run: npm i -g yarn - name: Install project dependencies run: yarn install - - name: Install specific yarn version + - name: Install specific prettier version run: yarn add prettier@${{ matrix.prettier }} && yarn list --depth=0 --pattern "prettier" - name: Run tests run: yarn test diff --git a/tests/__snapshots__/files/prism-core.js.shot b/tests/__snapshots__/files/prism-core.js.shot index 048a8ce..6c282ed 100644 --- a/tests/__snapshots__/files/prism-core.js.shot +++ b/tests/__snapshots__/files/prism-core.js.shot @@ -3,13 +3,6 @@ exports[`File: prism-core.js 1`] = ` "/// -var _self = - typeof window !== 'undefined' - ? window // if in browser - : typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope - ? self // if in worker - : {}; // if in node js - /** * Prism: Lightweight, robust, elegant syntax highlighting * diff --git a/tests/files/prism-core.js b/tests/files/prism-core.js index 01a8ac4..35be1a7 100644 --- a/tests/files/prism-core.js +++ b/tests/files/prism-core.js @@ -1,13 +1,5 @@ /// -var _self = (typeof window !== 'undefined') - ? window // if in browser - : ( - (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) - ? self // if in worker - : {} // if in node js - ); - /** * Prism: Lightweight, robust, elegant syntax highlighting *