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
8 changes: 2 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"@babel/preset-env"
],
"plugins": [
[
"@babel/transform-runtime", {
"regenerator": true
}
]
"@babel/transform-runtime"
]
}
}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '24'

- name: Install dependencies
run: npm install
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Node.js runtime as a base image
FROM --platform=linux/amd64 node:20
FROM --platform=linux/amd64 node:24

RUN apt-get update && \
apt-get install -y openssl
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ To run this prebuilt project, you will need:

- [Couchbase Capella](https://www.couchbase.com/products/capella/) cluster with [travel-sample](https://docs.couchbase.com/python-sdk/current/ref/travel-app-data-model.html) bucket loaded.
- To run this tutorial using a self managed Couchbase cluster, please refer to the [appendix](#running-self-managed-couchbase-cluster).
- [LTS Node.js Version](https://nodejs.org/en/download) installed on local machine.
- [LTS Node.js Version](https://nodejs.org/en/download) installed on local machine (Node.js 24 recommended; the Babel 8 toolchain requires `^22.18.0` or `>=24.11.0`).
- Basic knowledge of [JavaScript](https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics), [Node JS](https://nodejs.org/en/learn/getting-started/introduction-to-nodejs) and [Express](https://expressjs.com/)
- Loading Travel Sample Bucket
If travel-sample is not loaded in your Capella cluster, you can load it by following the instructions for your Capella Cluster:
Expand Down
18 changes: 18 additions & 0 deletions __test__/api-unknown-route.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {
request,
describe,
test,
expect,
app,
} from './imports';

describe('GET unknown route', () => {
describe('given a path that does not match any route', () => {
test('should respond with status code 404 Not Found', async () => {
const response = await request(app).get('/api/v1/does-not-exist/nested').send();

expect(response.statusCode).toBe(404);
expect(response.text).toBe('Not Found');
});
});
});
Loading
Loading