Skip to content
Closed
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
4 changes: 4 additions & 0 deletions Formula/n/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

depends_on "pkgconf" => :build
depends_on "python@3.14" => :build
depends_on "rust" => :build
depends_on "ada-url"
depends_on "brotli"
depends_on "c-ares"
Expand Down Expand Up @@ -231,7 +232,7 @@
(node_modules/"npm/npmrc").atomic_write("prefix = #{HOMEBREW_PREFIX}\n")
end

test do

Check failure on line 235 in Formula/n/node.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew test --verbose node` failed on macOS Sonoma (14) on Apple Silicon!

/opt/homebrew/Library/Homebrew/test.rb:67:in '<main>'
path = testpath/"test.js"
path.write "console.log('hello');"

Expand All @@ -243,6 +244,9 @@
output = shell_output("#{bin}/node -e 'console.log(new Intl.NumberFormat(\"de-DE\").format(1234.56))'").strip
assert_equal "1.234,56", output

output = shell_output("#{bin}/node -p 'typeof globalThis.Temporal?.Now?.zonedDateTimeISO'").strip
assert_equal "function", output

# make sure npm can find node
ENV.prepend_path "PATH", opt_bin
ENV.delete "NVM_NODEJS_ORG_MIRROR"
Expand Down
Loading