Advanced Node and Express - Set up a Template Engine

Tell us what’s happening:

Running into an issue where the Test-Backend on the FCC-Server is not evaluating the server-response correctly.

I check the fcctesting.js and from there got the route the server is trying to reach for the test.
I requested the route myself.
The response should pass imo:
…““views”:”./views/pug",“jsonp callback name”:“callback”,“view engine”:“pug”}…" in settings and locals.

The Server is receiving a request from FCC-Backend: “Listening on port 3000
requested
requested
requested
requested”

I also copied in the solution provided, but got the same issue anyways.

###Your project link(s)

solution:

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0

Challenge Information:

Advanced Node and Express - Set up a Template Engine

so i added debugging-logs which testing-endpoint is requested:
requested package.json
requested app-endpoint
requested app-endpoint

therefore i a got the endpoint responses myself, which are seemingly right:

package.json:
{"name":"fcc-advanced-node-and-express","author":"``http://github.com/JosephLivengood","version":"0.0.1","description":"What`` am I about?","main":"server.js","scripts":{"start":"node server.js","dev":"nodemon server.js"},"dependencies":{"bcrypt":"~5.0.0","connect-mongo":"~3.2.0","cookie-parser":"~1.4.5","dotenv":"^8.2.0","express":"^4.16.1","express-session":"~1.17.1","mongodb":"^3.6.1","passport":"^0.4.1","passport-github":"~1.1.0","passport-local":"~1.0.0","passport.socketio":"~3.7.0","pug":"~3.0.0","``socket.io``":"~2.3.0"},"keywords":["node","express","pug","passport","socketio"],"license":"MIT","devDependencies":{"nodemon":"^2.0.4"}}
app-endpoint:
{"_events":{},"_eventsCount":1,"request":{},"response":{},"cache":{},"engines":{},"settings":{"x-powered-by":true,"etag":"weak","env":"development","query parser":"extended","subdomain offset":2,"trust proxy":false,"views":"./views/pug","jsonp callback name":"callback","view engine":"pug"},"locals":{"settings":{"x-powered-by":true,"etag":"weak","env":"development","query parser":"extended","subdomain offset":2,"trust proxy":false,"views":"./views/pug","jsonp callback name":"callback","view engine":"pug"}},"mountpath":"/"}

root-pageview:

P.S.: i tested using WSL and Windows to run the nodeserver. I checked using the code from: Advanced Node and Express and my own. Same issues.

cors is needed as i checked further logs, please add to server.js to use cors with the app instance.

'use strict';

require('dotenv').config();

const express = require('express');

const myDB = require('./connection');

const fccTesting = require('./freeCodeCamp/fcctesting.js');

const cors = require('cors');





const app = express();




fccTesting(app); //For FCC testing purposes

app.use('/public', express.static(process.cwd() + '/public'));

app.use(express.json());

app.use(express.urlencoded({ extended: true }));

app.use(cors());