The thing is I executed the file name dreamhouseapp.apex as per the rules of the trailhead. Despites of all this I see an error in my studio. The SS as provided below
public with sharing class HouseService {
@AuraEnabled(cacheable=true)
public static List<House__c> getRecords() {
try {
// Create a list of House records from a SOQL query
List<House__c> lstHouses = [
SELECT
houseservice.cls
System.debug(HouseService.getRecords()); -dreamhouse.apex
Id,
Name,
Address__c,
State__c,
City__c,
Zip__c
FROM House__c
WITH USER_MODE
ORDER BY CreatedDate
LIMIT 10
];
return lstHouses;
}
// Code to handle exception
catch (Exception e) {
throw new AuraHandledException(e.getMessage());
}
}
}
the class i made -HouseService.cls
the test file - dreamhouseapp.apex
System.debug(HouseService.getRecords());