Skip to content
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
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4
- name: Mount bazel caches
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
"~/.cache/bazel"
Expand All @@ -39,10 +39,10 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4
- name: Mount bazel caches
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
"~/.cache/bazel"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Mount bazel caches
uses: actions/cache@v3
with:
Expand Down
7 changes: 0 additions & 7 deletions examples/nextjs/apps/alpha/pages/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,3 @@ describe('Home', () => {
expect(heading).toBeInTheDocument();
});
});

describe('snapshot', () => {
it('works', () => {
const { asFragment } = render(<Home />);
expect(asFragment()).toMatchSnapshot();
});
});
2 changes: 1 addition & 1 deletion gazelle/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (lang *JS) Imports(c *config.Config, r *rule.Rule, f *rule.File) []resolve.
}

// modules can be resolved via the directory containing them
if isBarrel || jsConfig.CollectAll {
if (isBarrel || jsConfig.CollectAll) && r.Kind() != getKind(c, "jest_test") {
importSpecs = append(importSpecs, resolve.ImportSpec{
Lang: lang.Name(),
Imp: f.Pkg,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ jest_test(
srcs = [
"a.test.ts",
"b.test.ts",
"index.test.ts",
],
config = "//:jest.config",
data = ["//:package_json"],
data = [
":double_nested_module",
"//:package_json",
],
deps = [":double_nested_module"],
)

ts_project(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { some_private_var as some_var } from "./module_file"