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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ scripts/projects-test @microsoft/fluentui-react-build
scripts/puppeteer @microsoft/fluentui-react-build
scripts/storybook @microsoft/fluentui-react-build
scripts/tasks @microsoft/fluentui-react-build
scripts/test-ssr @microsoft/fluentui-react-build
scripts/triage-bot @microsoft/fluentui-react-build @microsoft/cxe-prg
scripts/ts-node @microsoft/fluentui-react-build
scripts/update-release-notes @microsoft/fluentui-react-build
Expand Down
21 changes: 21 additions & 0 deletions scripts/test-ssr/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": ["plugin:@fluentui/eslint-plugin/node", "plugin:@fluentui/eslint-plugin/imports"],
"rules": {
"@fluentui/max-len": "off",
"import/no-extraneous-dependencies": [
"error",
{
"packageDir": [".", "../../"]
}
]
},
"overrides": [
{
"files": "src/index.d.ts",
"rules": {
"import/no-self-import": "off"
}
}
],
"root": true
}
3 changes: 3 additions & 0 deletions scripts/test-ssr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Test SSR utility

TBD
2 changes: 2 additions & 0 deletions scripts/test-ssr/bin/test-ssr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env node
console.log('test-ssr: is not implemented yet');
14 changes: 14 additions & 0 deletions scripts/test-ssr/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-check

/**
* @type {import('@jest/types').Config.InitialOptions}
*/
module.exports = {
displayName: 'scripts-test-ssr',
preset: '../../jest.preset.js',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
coverageDirectory: './coverage',
testEnvironment: 'node',
};
16 changes: 16 additions & 0 deletions scripts/test-ssr/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@fluentui/scripts-test-ssr",
"version": "0.0.1",
"private": true,
"bin": {
"test-ssr": "./bin/test-ssr.js"
},
"scripts": {
"format": "prettier -w --ignore-path ../../.prettierignore .",
"format:check": "yarn format -c",
"lint": "eslint --ext .ts,.js .",
"test": "jest --passWithNoTests",
"type-check": "tsc -b tsconfig.json"
},
"dependencies": {}
}
1 change: 1 addition & 0 deletions scripts/test-ssr/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('Hello from test-ssr');
22 changes: 22 additions & 0 deletions scripts/test-ssr/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": "@tsconfig/node14/tsconfig.json",
"compilerOptions": {
"target": "ES2019",
"pretty": true,
"noEmit": true,
"allowJs": true,
"checkJs": true,
"sourceMap": true,
"noUnusedLocals": true
},
"include": [],
"files": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
11 changes: 11 additions & 0 deletions scripts/test-ssr/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"lib": ["ES2019"],
"outDir": "../../dist/out-tsc",
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
"include": ["./src/**/*.ts", "./src/**/*.js"]
}
9 changes: 9 additions & 0 deletions scripts/test-ssr/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "CommonJS",
"outDir": "dist",
"types": ["jest", "node"]
},
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"]
}
6 changes: 6 additions & 0 deletions workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,12 @@
"projectType": "library",
"tags": ["tools"]
},
"@fluentui/scripts-test-ssr": {
"root": "scripts/test-ssr",
"sourceRoot": "scripts/test-ssr/src",
"projectType": "library",
"tags": ["tools"]
},
"@fluentui/scripts-triage-bot": {
"root": "scripts/triage-bot",
"sourceRoot": "scripts/triage-bot/src",
Expand Down