@adonisjs/assembler 5.5.4-0 → 5.6.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.
@@ -115,6 +115,7 @@ class Configure extends standalone_1.BaseCommand {
115
115
  },
116
116
  ],
117
117
  });
118
+ rcFile.addTestProvider('@japa/preset-adonis/TestsProvider');
118
119
  rcFile.commit();
119
120
  sink_1.logger.action('update').succeeded('.adonisrc.json');
120
121
  /**
@@ -129,8 +130,28 @@ class Configure extends standalone_1.BaseCommand {
129
130
  if (this.appType === 'web') {
130
131
  testEnvFile.add(['ASSETS_DRIVER=fake', 'SESSION_DRIVER=memory']);
131
132
  }
133
+ testEnvFile.commit();
132
134
  sink_1.logger.action('create').succeeded('.env.test');
133
135
  }
136
+ /**
137
+ * Update "tsconfig.json"
138
+ */
139
+ const tsConfig = new sink_1.files.JsonFile(this.application.appRoot, 'tsconfig.json');
140
+ const existingTypes = tsConfig.get('compilerOptions.types') || [];
141
+ if (!existingTypes.includes('@japa/preset-adonis/build/adonis-typings')) {
142
+ existingTypes.push('@japa/preset-adonis/build/adonis-typings');
143
+ }
144
+ tsConfig.set('compilerOptions.types', existingTypes);
145
+ tsConfig.commit();
146
+ sink_1.logger.action('update').succeeded('tsconfig.json');
147
+ /**
148
+ * Set additional .env variables for "web" boilerplate
149
+ */
150
+ if (this.appType === 'web') {
151
+ testEnvFile.add(['ASSETS_DRIVER=fake', 'SESSION_DRIVER=memory']);
152
+ }
153
+ testEnvFile.commit();
154
+ sink_1.logger.action('create').succeeded('.env.test');
134
155
  /**
135
156
  * Install required dependencies
136
157
  */
@@ -44,6 +44,10 @@ export declare class TestsServer {
44
44
  */
45
45
  private isTestFile;
46
46
  constructor(appRoot: string, filters: JapaFlags, nodeArgs?: string[], logger?: typeof uiLogger);
47
+ /**
48
+ * Clear terminal screen
49
+ */
50
+ private clearScreen;
47
51
  /**
48
52
  * Returns the glob paths for test suites. Returns all if no
49
53
  * filter is applied. Otherwise only the filtered suites
@@ -79,6 +79,12 @@ class TestsServer {
79
79
  });
80
80
  };
81
81
  }
82
+ /**
83
+ * Clear terminal screen
84
+ */
85
+ clearScreen() {
86
+ process.stdout.write('\u001Bc');
87
+ }
82
88
  /**
83
89
  * Returns the glob paths for test suites. Returns all if no
84
90
  * filter is applied. Otherwise only the filtered suites
@@ -129,6 +135,7 @@ class TestsServer {
129
135
  if (this.busy) {
130
136
  return;
131
137
  }
138
+ this.clearScreen();
132
139
  const filters = { ...this.filters };
133
140
  /**
134
141
  * Overwrite files filter when a specific file path
@@ -4,5 +4,5 @@ test('display welcome page', async ({ client }) => {
4
4
  const response = await client.get('/')
5
5
 
6
6
  response.assertStatus(200)
7
- response.assertTextIncludes('hello world')
7
+ response.assertTextIncludes('Hello world')
8
8
  })
@@ -12,7 +12,7 @@ declare module '@japa/runner' {
12
12
  // Extend context
13
13
  }
14
14
 
15
- interface Test<DataSet> {
15
+ interface Test<TestData> {
16
16
  // Extend test
17
17
  }
18
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/assembler",
3
- "version": "5.5.4-0",
3
+ "version": "5.6.2",
4
4
  "description": "Core commands to compiler and build AdonisJs project",
5
5
  "main": "build/ace-manifest.json",
6
6
  "files": [
@@ -45,16 +45,16 @@
45
45
  "homepage": "https://github.com/adonisjs/assembler#readme",
46
46
  "devDependencies": {
47
47
  "@adonisjs/ace": "^11.2.3",
48
- "@adonisjs/core": "^5.6.2",
48
+ "@adonisjs/core": "^5.7.4",
49
49
  "@adonisjs/mrm-preset": "^5.0.3",
50
50
  "@poppinss/dev-utils": "^2.0.3",
51
- "@types/node": "^17.0.23",
51
+ "@types/node": "^17.0.24",
52
52
  "commitizen": "^4.2.4",
53
53
  "copyfiles": "^2.4.1",
54
54
  "cross-env": "^7.0.3",
55
55
  "cz-conventional-changelog": "^3.3.0",
56
56
  "del-cli": "^4.0.1",
57
- "eslint": "^8.12.0",
57
+ "eslint": "^8.13.0",
58
58
  "eslint-config-prettier": "^8.5.0",
59
59
  "eslint-plugin-adonis": "^2.1.0",
60
60
  "eslint-plugin-prettier": "^4.0.0",
@@ -89,14 +89,14 @@
89
89
  "anyBranch": false
90
90
  },
91
91
  "dependencies": {
92
- "@adonisjs/application": "^5.2.1",
93
- "@adonisjs/env": "^3.0.8",
92
+ "@adonisjs/application": "^5.2.4",
93
+ "@adonisjs/env": "^3.0.9",
94
94
  "@adonisjs/ioc-transformer": "^2.3.3",
95
95
  "@adonisjs/require-ts": "^2.0.11",
96
- "@adonisjs/sink": "^5.2.2",
96
+ "@adonisjs/sink": "^5.2.3",
97
97
  "@poppinss/chokidar-ts": "^3.3.5",
98
98
  "@poppinss/cliui": "^3.0.2",
99
- "@poppinss/utils": "^4.0.3",
99
+ "@poppinss/utils": "^4.0.4",
100
100
  "cpy": "^8.1.2",
101
101
  "emittery": "^0.10.2",
102
102
  "execa": "^5.1.1",
@@ -112,7 +112,7 @@
112
112
  },
113
113
  "publishConfig": {
114
114
  "access": "public",
115
- "tag": "next"
115
+ "tag": "latest"
116
116
  },
117
117
  "mrmConfig": {
118
118
  "core": true,