Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: simpify false.test.ts #4862

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/integration-test-Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,22 @@ on:
jobs:
integration-test-linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest
runs-on: ${{ fromJSON(vars.SELF_LINUX_LABELS || '"ubuntu-latest"') }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Print runner context
env:
RUNNER_CONTEXT: ${{ toJson(runner) }}
run: echo "$RUNNER_CONTEXT"

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Install Pnpm
run: corepack enable
uses: pnpm/action-setup@v2

- name: Check skip CI
run: echo "RESULT=$(node ./scripts/skipCI.js)" >> "$GITHUB_OUTPUT"
Expand Down
6 changes: 1 addition & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "browser-false",
"browser": {
"./util": false
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import xxx from 'object-inspect';
import jjj from './browser-false/util';

console.log('xxx:', xxx);
console.log('jjj:', jjj); // the value of `jjj` should `{}`
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"name": "resolve-false",
"version": "1.0.0",
"devDependencies": {
"object-inspect": "1.13.0"
}
"version": "1.0.0"
}