Skip to content

Add template build time stats #4557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
ammario committed Oct 14, 2022
commit 304b072e7385bf2831458740e57705e36a2685d1
1 change: 0 additions & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
"jest-junit": "14.0.0",
"jest-runner-eslint": "1.1.0",
"jest-websocket-mock": "2.4.0",
"mockdate": "^3.0.5",
"msw": "0.47.0",
"prettier": "2.7.1",
"resize-observer": "1.0.4",
Expand Down
3 changes: 0 additions & 3 deletions site/src/pages/TemplatesPage/TemplatesPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import { history, render } from "../../testHelpers/renderHelpers"
import { server } from "../../testHelpers/server"
import { TemplatesPage } from "./TemplatesPage"
import { Language } from "./TemplatesPageView"
import MockDate from "mockdate"

MockDate.set("2000-11-22")

describe("TemplatesPage", () => {
beforeEach(() => {
Expand Down
2 changes: 2 additions & 0 deletions site/src/util/templates.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import dayjs from "dayjs"
import duration from "dayjs/plugin/duration"
import relativeTime from "dayjs/plugin/relativeTime"

dayjs.extend(duration)
dayjs.extend(relativeTime)

export const formatTemplateActiveDevelopers = (num?: number): string => {
if (num === undefined || num < 0) {
Expand Down
5 changes: 0 additions & 5 deletions site/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10195,11 +10195,6 @@ mock-socket@^9.1.0:
resolved "https://registry.yarnpkg.com/mock-socket/-/mock-socket-9.1.5.tgz#2c4e44922ad556843b6dfe09d14ed8041fa2cdeb"
integrity sha512-3DeNIcsQixWHHKk6NdoBhWI4t1VMj5/HzfnI1rE/pLl5qKx7+gd4DNA07ehTaZ6MoUU053si6Hd+YtiM/tQZfg==

mockdate@^3.0.5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/mockdate/-/mockdate-3.0.5.tgz#789be686deb3149e7df2b663d2bc4392bc3284fb"
integrity sha512-iniQP4rj1FhBdBYS/+eQv7j1tadJ9lJtdzgOpvsOHng/GbcDh2Fhdeq+ZRldrPYdXvCyfFUmFeEwEGXZB5I/AQ==

moo-color@^1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/moo-color/-/moo-color-1.0.3.tgz#d56435f8359c8284d83ac58016df7427febece74"
Expand Down