Compare commits

...

2 Commits

Author SHA1 Message Date
Ivan Li
9334a45e55 build: pm2 ecosystem config. 2021-05-03 10:21:42 +08:00
Ivan Li
d29eeaae90 build: fix vscode launch.json. 2021-05-02 22:14:16 +08:00
3 changed files with 15 additions and 10 deletions

2
.vscode/launch.json vendored
View File

@ -9,7 +9,7 @@
"type": "chrome", "type": "chrome",
"request": "launch", "request": "launch",
"reAttach": true, "reAttach": true,
"url": "http://blog.localhost/", "url": "http://admin.blog.localhost/",
"webRoot": "${workspaceFolder}", "webRoot": "${workspaceFolder}",
"userDataDir": "/Users/ivan/Projects/.chrome" "userDataDir": "/Users/ivan/Projects/.chrome"
} }

14
ecosystem.config.js Normal file
View File

@ -0,0 +1,14 @@
module.exports = {
apps: [
{
name: "blog-bs",
script: "serve",
args: "-s build",
watch: false,
ignore_watch: ["node_modules"],
log_date_format: "MM-DD HH:mm:ss.SSS Z",
env: {},
max_restarts: 5,
},
],
};

View File

@ -1,9 +0,0 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
import App from './App';
test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});