mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
[now dev] Tests for routing and apply default frontend builder last (#2518)
This commit is contained in:
5
test/fixtures/unit/now-dev-default-frontend/package.json
vendored
Normal file
5
test/fixtures/unit/now-dev-default-frontend/package.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"scripts": {
|
||||
"build": "rm -Rf dist && cp -r public dist"
|
||||
}
|
||||
}
|
||||
9
test/fixtures/unit/now-dev-default-frontend/public/index.html
vendored
Normal file
9
test/fixtures/unit/now-dev-default-frontend/public/index.html
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello World</title>
|
||||
</head>
|
||||
<body>
|
||||
Hello World
|
||||
</body>
|
||||
</html>
|
||||
3
test/fixtures/unit/now-dev-default-routing/api/[endpoint].js
vendored
Normal file
3
test/fixtures/unit/now-dev-default-routing/api/[endpoint].js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (req, res) => {
|
||||
res.end(`${req.query.endpoint}`);
|
||||
};
|
||||
3
test/fixtures/unit/now-dev-default-routing/api/[endpoint]/[id].js
vendored
Normal file
3
test/fixtures/unit/now-dev-default-routing/api/[endpoint]/[id].js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (req, res) => {
|
||||
res.end(`${req.query.endpoint}/${req.query.id}`);
|
||||
};
|
||||
3
test/fixtures/unit/now-dev-default-routing/api/welcome.js
vendored
Normal file
3
test/fixtures/unit/now-dev-default-routing/api/welcome.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = (req, res) => {
|
||||
res.end('hello and welcome');
|
||||
};
|
||||
5
test/fixtures/unit/now-dev-default-routing/package.json
vendored
Normal file
5
test/fixtures/unit/now-dev-default-routing/package.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"scripts": {
|
||||
"build": "rm -Rf dist && cp -r public dist"
|
||||
}
|
||||
}
|
||||
9
test/fixtures/unit/now-dev-default-routing/public/index.html
vendored
Normal file
9
test/fixtures/unit/now-dev-default-routing/public/index.html
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello World</title>
|
||||
</head>
|
||||
<body>
|
||||
Hello World
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user