-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathnode_14_spec.rb
More file actions
36 lines (33 loc) · 1.49 KB
/
node_14_spec.rb
File metadata and controls
36 lines (33 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require_relative '../spec_helper'
describe "Hello World for Node v14.x" do
context "a single-process Node v14.x app" do
let(:app) {
Hatchet::Runner.new("spec/fixtures/repos/node-14")
}
it "should deploy successfully with EOL warning" do
app.deploy do |app|
expect(clean_output(app.output)).to include(<<~OUTPUT)
remote: -----> Installing binaries
remote: engines.node (package.json): 14.x
remote: engines.npm (package.json): unspecified (use default)
remote:
remote: Resolving node version 14.x...
remote:
remote: ! Node.js 14.21.3 is now End-of-Life (EOL). It no longer receives security
remote: ! updates, bug fixes, or support from the Node.js project and is no longer
remote: ! supported on Heroku.
remote: !
remote: ! In a future buildpack release, this warning will become a build error. Please
remote: ! upgrade to a supported version as soon as possible to avoid build failures.
remote: !
remote: ! https://devcenter.heroku.com/articles/nodejs-support#supported-node-js-versions
remote:
remote: Downloading and installing node 14.21.3...
remote: Validating checksum
remote: Using default npm version: 6.14.18
OUTPUT
expect(successful_body(app).strip).to eq("Hello, world!")
end
end
end
end