@mainqueueio/playground 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bunfig.toml DELETED
@@ -1,9 +0,0 @@
1
- # Docs: https://bun.sh/docs/test/
2
- [test]
3
-
4
- coverage = true
5
- coverageThreshold = 1
6
-
7
- # Activate when gitignore is updated
8
- coverageReporter = ["text", "lcov"]
9
- coverageDir = "docs/tests"
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ['@commitlint/config-conventional'],
3
- };
package/src/index.spec.ts DELETED
@@ -1,25 +0,0 @@
1
- import { describe, expect, it } from "bun:test";
2
-
3
- import { helloMessage } from './index'
4
-
5
- describe('index.ts test cases', () => {
6
- it('should return default if param is not passed', () => {
7
- const result = helloMessage()
8
- expect(result).toBe('Hello from MainQueue Library')
9
- })
10
-
11
- it('should return default if param is empty', () => {
12
- const result = helloMessage('')
13
- expect(result).toBe('Hello from MainQueue Library')
14
- })
15
-
16
- it('should return default if param is null', () => {
17
- const result = helloMessage(null)
18
- expect(result).toBe('Hello from MainQueue Library')
19
- })
20
-
21
- it('should return message if param is passed', () => {
22
- const result = helloMessage('Test')
23
- expect(result).toBe('Hello Test')
24
- })
25
- })
package/src/index.ts DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * Function for testing library deployment
3
- *
4
- * @param name - Parameter to add to the message
5
- */
6
- export const helloMessage = (name?: string | null) => {
7
- return !!name && name.length > 0 ? `Hello ${name}` : 'Hello from MainQueue Library';
8
- }
package/tsconfig.json DELETED
@@ -1,28 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Environment setup & latest features
4
- "lib": ["ESNext"],
5
- "target": "ESNext",
6
- "module": "ESNext",
7
- "moduleDetection": "force",
8
- "jsx": "react-jsx",
9
- "allowJs": true,
10
-
11
- // Bundler mode
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "noEmit": true,
16
-
17
- // Best practices
18
- "strict": true,
19
- "skipLibCheck": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "noUncheckedIndexedAccess": true,
22
-
23
- // Some stricter flags (disabled by default)
24
- "noUnusedLocals": false,
25
- "noUnusedParameters": false,
26
- "noPropertyAccessFromIndexSignature": false
27
- }
28
- }